I am using the same workflow for different use cases.so i want pass different process id for different use cases for the same workflow.How to i pass the process id dynamically to workflow based on some condition.Have any idea?
Would you explain your problem in more details? Where you want to "pass" different process IDs - in your code? Or you have a process and you would like to substitute some sub-process? Or something else?
Actually i have different use cases, for all these i use same workflow but i want differentiate the same workflow from different use cases.Is it possible.
Offcourse you can do this. Maybe it's a good idea to read about BPMN first, it contains a lot of constructs to do conditional rings (gateways) and call other processes (call-activity).