The Notification component is used to send notifications to instances that have been put on hold by the Wait Message activity. Notifications can be sent to the same process or to a different process. For the Notification component to work properly, the Wait Message activity must be set to wait for external events.
The following example sends a notification using an instance ID to identify the instance. The instance ID uniquely identifies an instance, even across processes. You can send notifications to an instance in another process. If the Wait Message activity defines more than one argument-set, you must specify an argument set.
args["exampleArg1"]=value1
args["exampleArg2"]=value2
send Notification
using instanceId = exampleInstanceId,
activityName = "WaitingConfirmation",
argumentSetName = "byInstanceID",
parameters = args
The following example notifies an instance by its number within the current process.
To identify a particular instance copy within a Split/Join circuit, you must specify the copy number with the thread parameter.
send Notification
using instance = instnum,
thread = 0,
activityName = "WaitingConfirmation"
parameters = args
The following example notifies an instance specifying its Process ID and Correlation arguments:
In this example, techorder_arg and technum_arg are the expected arguments in the Wait Message activity that match the Correlation's properties (as defined in the TechOrderSet argument set):
correlationArgs as Any[Any]
correlationArgs["techorder_arg"] = technicalCode
correlationArgs["technum_arg"] = technum
send Notification
using processId = "/RepairRequest",
activityName = "WaitTechnicalRepair",
arguments = correlationArgs,
argumentSetName = "TechoOrderSet"
The following example sends a notification to a process instance of a different Oracle BPM environment (that is, configured under a different Oracle BPM Directory). In this case, the instanceId argument is a global instanceId, which ends with @ and the organization name. For this to work, the Oracle BPM environment must be properly configured to locate the Oracle BPM Directory for the given organization name.
send Notification
using instanceId = myInstanceId + "@" + organizationName,
activityName = "WaitTechnicalRepair",
parameters = args