Inter-resources subscriptions

The inter-resources subscriptions are implemented for tables. It will enable you to position fields’ values of a linked resource or a linked document from field values coming from the main document (parent).

SDK Access

Execute subscription

Since Process2026.1.0, the inter-resources subscriptions can be executed with the SDK.

Example 1 - Execute a subscription by its name:

String subscriptionName = "mySubscriptionName";
IWorkflowInstance sourceInstance = ...;
IWorkflowInstance destinationInstance = ...;
//IDirectoryModule directoryModule = Modules.getDirectoryModule( context ); // deprecated since 2026.0 removed in 2027
IWorkflowModule workflowModule = SDKFactory.MODULES.getWorkflowModule( context ); // since 2026.0
try {
  workflowModule.executeSubscription(subscriptionName, sourceInstance, destinationInstance);
} catch (WorkflowModuleException e) {
    // Subscription with the given name does not exist for the given source workflow instance
} finally {
    // Modules.releaseModule(workflowModule); //deprecated since 2026.0 removed in 2027
    SDKFactory.MODULES.releaseModule(workflowModule); //since 2026.0
}

Example 2 - Execute all the subscriptions between two workflow instances:

IWorkflowInstance sourceInstance = ...;
IWorkflowInstance destinationInstance = ...;
//IDirectoryModule directoryModule = Modules.getDirectoryModule( context ); // deprecated since 2026.0 removed in 2027
IWorkflowModule workflowModule = SDKFactory.MODULES.getWorkflowModule( context ); // since 2026.0
try {
  workflowModule.executeSubscriptions(sourceInstance, destinationInstance);
} finally {
    // Modules.releaseModule(workflowModule); //deprecated since 2026.0 removed in 2027
    SDKFactory.MODULES.releaseModule(workflowModule); //since 2026.0
}