cancel
Showing results for 
Search instead for 
Did you mean: 

Instantiate element of subworkflow

Former Member
0 Kudos

Hi.

I have two workflows: workflowA and workflowB.

workflowA contains mandatory import container element obj which references to class myClass which implements interface If_workflow.

When i test workflowA with transaction SWUS i have option to set field INSTID( component of SIBFLPOR)  with some value. and execute workflowA

with instantiated obj. All works fine.

Now i want to include workflowA as subworkflow into workflowB but I dont know how to pass value from container element of workflowB

to obj as i can do it in SWUS

Accepted Solutions (0)

Answers (1)

Answers (1)

anjan_paul
Active Contributor
0 Kudos

Hi,

   Just cerate a Actitivty step and add your workflowA  in workflowB. And in the binding pass the key of the class which is required to instantiate  class.

Former Member
0 Kudos

Could you give me example how to do this?

now i receive error message

An object compatible with '[CL.MYCLASS]' was expected as the source expression

anjan_paul
Active Contributor
0 Kudos

Hi,

  Can you please share the binding screenshot.

sbl
Active Contributor
0 Kudos

Hi Marat,

In workflow B do you have your object ? Is it instanciated ?

If yes then in your workflow A you need to have the Object as an import parameter

If your object is not instanciated in your workflow B you simply won't be able to pass it to workflow A

Best regards

Stephane