Adding a relationship between process instances by using JavaScript

You can use the JavaScript API that IBM® Business Process Manager provides to add relationships between process instances. You can create an independent relationship between two process instances, make the current process instance depend on another process instance, or make another instance depend on the current instance.