HOME COMMUNITY BLOG
Skip to end of metadata
Go to start of metadata

You can pass data between the caller and called workflow by adding Context Mapping elements under the Workflow Call element.

CONTEXT MAPPING ATTRIBUTES

DirectionSpecifies the direction of the maping.
  • Input – The CallerContextStore data will be passed to the called workflow's TargetContextStore before the called workflow is started.

  • Output – After the called workflow finishes, the data from its TargetContextStore will be merged back to the CallerContextStore. The merge type depends on the OutputType of the task.

  • Return – After the called workflow finishes, the data from its TargetContextStore will be used as a return value of this task. So the CalledContextStore will be ignored and the data will be merged to the context specified by the OutputContext of the task itself. The EndRule (if any) will be executed on this data.

CallerContextStoreThe context of the caller (this) workflow.
XPathXPath expression, by which you can limit the values transferred to the called workflow (so the XPath will be executed for Input parameters on the CallerContextStore).
TargetContextStoreThe context store of the target (called) workflow.

Typically you will pass some contexts to the called workflow (Direction = Input) and you will use one of the contexts of the called workflow for return values (Direction = Return), so the return value can be checked by the EndRule.

  • No labels