cancel
Showing results for 
Search instead for 
Did you mean: 

Calling different workflows for PR depending on conditions

former_member242512
Participant
0 Kudos

Hi All

I'm new to workflows . The existing system has Worklow implemented and our requirement includes creating new workflow and process as per release strategy. Now as we want our workflow to get get trigger depending on document type , how can we achieve calling our new workflow instead of old workflow.I'm not undersatnding how we can cahive calling diffrent workflows depending on conditions from PR tcode.

Thanks .


Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

You can also have a new workflow which will start in both the conditions.

Then in this workflow you can check the required business condition and start the required workflow as a sub workflow.

former_member186746
Active Contributor
0 Kudos

Hi,

I would also go for the event-->workflow condition.

No one has mentioned to you which transaction this is yet, it is SWB_COND

You can use all of the attributes on, in this case, the business object in the condition.

Kind regards, Rob Dielemans

vishesh_malik
Participant
0 Kudos

Hi,

There are multiple ways of achiving your requirement.

1) Use Check FM in SWE2 where you are defining event linkage and based on your condition you can define receiver workflow. You may find it difficult to implement but it woul dbe best way both in terms of implementation and learning.

2) In both, new and old workflows , define conditions in event linkage in workflows. Wherever Document type will match that workflow will be triggered and the other one won't trigger.

3) This is just a simple design solution which you can implement if you do not want to struggle ,Do not put any condition in workflow event linkage, instead put a simple IF condition in your existing workflow , If document type matches new workflow then trigger that workflow as sub-workflow in separate branch otherwise continue with the same workflow. Just remember to cut-paste all steps within IF condition as you would not want to continue with steps of old workflow when new workflow(used as sub-workflow) completes its execution. I won't recommend this, suggested just to give you one option.

Thanks,

Vishesh

anjan_paul
Active Contributor
0 Kudos


Hi,

  I think you know about workflow, if you know, then you can create event linkage with event, and maintain condition with Document type  of  in Basic Data -> Start Event of new workflow

former_member227140
Active Participant
0 Kudos

Develop a new workflow and put a condition of document type in header while triggering of workflow.

new workflow will be triggered when that document type PR is raised  , but at the same time it will trigger old workflow as well cause that workflow dont have any start condition to it.

may be for old workflow you can put a triggering condition where document types are not equal to those you mentioned in new workflow.

let me know if this is what you need , you can explain further to get some responses as your questions does not seem to be so clear to me.