How to call in_transactionitem in Process transaction invoke workflow

Hello All,

I am currently working on an enhancement project and need to pass in_transactionItem within 3 invoke workflow activities in Process.xaml.

Could you please suggest the appropriate approach to achieve this?

Thanks,
Nawaz

Hi @mohammed_nawazuddin1,

You can pass the in_TransactionItem from Process.xaml to each invoked workflow using workflow arguments.

Approach:

  1. In each child workflow, create an In argument with the same type as in_TransactionItem.
  2. In the Invoke Workflow File activity, map the argument to in_TransactionItem from Process.xaml.
  3. Repeat this mapping for all three invoked workflows.

For example:

Process.xaml → in_TransactionItem → Invoke Workflow arguments → ChildWorkflow.xaml

Make sure the argument type is the same in all workflows, such as QueueItem, DataRow, or the type used in your REFramework transaction.

Hope this helps!

Hi @mohammed_nawazuddin1,

In Process.xaml, the in_TransactionItem is already available as the current transaction item. If you need to use it in 3 different invoked workflows, you should pass it through arguments.

For each child workflow:

  1. Create an In argument, for example in_TransactionItem.
  2. Set the argument type to the same type as the transaction item (QueueItem, DataRow, etc.).
  3. In the Invoke Workflow File activity in Process.xaml, map the parent in_TransactionItem to the child workflow argument.

This way, all three workflows can use the same transaction item.

Example:
Process.xaml (in_TransactionItem) → Workflow1 → Workflow2 → Workflow3

Just make sure the argument type matches the transaction item type.

Hi @mohammed_nawazuddin1 ,
If you need to use in_TransactionItem in multiple Invoke Workflow File activities inside Process.xaml, the best approach is to pass it as an In argument to each invoked workflow.

Steps:

  1. Create an In argument (same type as in_TransactionItem) in each child workflow.
  2. In the Invoke Workflow File activity, map:
    • in_TransactionItem (from Process.xaml)
    • to the corresponding input argument in the invoked workflow.
  3. Repeat this mapping for all 3 workflows that need access to the transaction item.

Thanks

Hi @mohammed_nawazuddin1

You can pass in_transactionItem to each Invoke Workflow File activity by creating an input argument in the invoked workflow.

For example:

  • In the child workflow, create an argument such as in_TransactionItem with the same type as in_transactionItem.
  • In each Invoke Workflow File, map in_transactionItem to in_TransactionItem.

You can use the same in_transactionItem variable as the input for all three Invoke Workflow activities, so there is no need to create separate variables.

Hi @mohammed_nawazuddin1,

You need to create an In Argument in each of the three invoked workflows, with the same data type as in_TransactionItem.

Then, in Process.xaml, pass in_TransactionItem to the corresponding argument of each Invoked Workflow.

This way, the same in_TransactionItem can be passed from Process.xaml to all three workflows.

Thanks!