cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

how can we access variables of one workflow from another workflow

dsaini
2-Explorer

how can we access variables of one workflow from another workflow

how can we access variables of one workflow from another workflow?

1 REPLY 1
satre-2
12-Amethyst
(To:dsaini)

Not sure your exact requirement, but if it is related to change Management Workflow, then you can use changehelper2 to find related Object. Once you have object then you get related process using WfEngineHelper.service.getAssociatedProcesses API , once you have process the use below API's to get the process variable and their values

  WfProcess process = (WfProcess) pro;

  WfVariable vars[] = process.getContext().getVariableList();

  HashMap<String, Object> varMap = new HashMap<String, Object>();

  for (WfVariable var : vars) {

  System.out.println("Printing Variable " + var.getName() + "---value---" + var.getValue());

  }

Hope it helps!!!

Thanks

Shreyas

Announcements

Top Tags