Class: Kaltura::KalturaBusinessProcessCaseService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb

Overview

Business-process case service lets you get information about processes

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaBusinessProcessCaseService

Returns a new instance of KalturaBusinessProcessCaseService.



491
492
493
# File 'lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb', line 491

def initialize(client)
	super(client)
end

Instance Method Details

#abort(object_type, object_id, business_process_start_notification_template_id) ⇒ Object

Abort business-process case

Returns:



497
498
499
500
501
502
503
504
505
506
507
# File 'lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb', line 497

def abort(object_type, object_id, business_process_start_notification_template_id)
	kparams = {}
	client.add_param(kparams, 'objectType', object_type)
	client.add_param(kparams, 'objectId', object_id)
	client.add_param(kparams, 'businessProcessStartNotificationTemplateId', business_process_start_notification_template_id)
	client.queue_service_action_call('businessprocessnotification_businessprocesscase', 'abort', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#list(object_type, object_id) ⇒ array

list business-process cases

Returns:

  • (array)


511
512
513
514
515
516
517
518
519
520
# File 'lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb', line 511

def list(object_type, object_id)
	kparams = {}
	client.add_param(kparams, 'objectType', object_type)
	client.add_param(kparams, 'objectId', object_id)
	client.queue_service_action_call('businessprocessnotification_businessprocesscase', 'list', 'KalturaBusinessProcessCase', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#serve_diagram(object_type, object_id, business_process_start_notification_template_id) ⇒ file

Server business-process case diagram

Returns:

  • (file)


524
525
526
527
528
529
530
531
# File 'lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb', line 524

def serve_diagram(object_type, object_id, business_process_start_notification_template_id)
	kparams = {}
	client.add_param(kparams, 'objectType', object_type)
	client.add_param(kparams, 'objectId', object_id)
	client.add_param(kparams, 'businessProcessStartNotificationTemplateId', business_process_start_notification_template_id)
	client.queue_service_action_call('businessprocessnotification_businessprocesscase', 'serveDiagram', 'file', kparams)
	return client.get_serve_url()
end