How to get the execution ID of a Parent process from within a sub-process (using scripting)

Document created by mike_aronson Employee on Nov 17, 2015Last modified by luis_nevarez on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
Use following script in a Data Process-Custom Scripting shape or a Map Function-Custom Scripting.
import com.boomi.execution.ExecutionManager;   ExecutionManager.getCurrent().getTopLevelExecutionId();
Point of Clarification:


If this function is called from a child process of a sub process, it will return the execution ID of the top level/main calling process.


For example:


Process A calls Process B, which then calls Process C.
If this code is imbedded in process C, it will return the execution ID of Process A
6 people found this helpful