You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

The problem i am facing is as follow:-

1. if i call this APi method then it will return all the packages without any problem:-

web/json/workflow/package/list

{"data":\[

{"packageName":"123","packageId":"123"},

{"packageName":"8i","packageId":"8i"},

{"packageName":"CRM","packageId":"crm"},

{"packageName":"Engineers Association","packageId":"EngineersAssociation"},

{"packageName":"Leave App","packageId":"leaveApp"},

{"packageName":"Newtest","packageId":"Newtest"},

{"packageName":"Test App","packageId":"testapp"},

{"packageName":"test54","packageId":"test5"},

{"packageName":"testabc","packageId":"testabc"}\]}

2. if i call this API it will not list all the processes for example the process under the " Engineers Association " package will not be listed:-

*http://localhost:8080/jw/web/json/workflow/process/list*

{"total":4,"data":\[

{"id":"leaveApp#3#leaveApplicationProcess","packageName":"Leave App","name":"Leave Application Process","packageId":"leaveApp","label":"Leave Application Process ver 3","version":"3"},

{"id":"leaveApp#3#process1","packageName":"Leave App","name":"Leave Application Process2","packageId":"leaveApp","label":"Leave Application Process2 ver 3","version":"3"},

{"id":"crm#1#process1","packageName":"CRM","name":"Proposal Approval Process","packageId":"crm","label":"Proposal Approval Process ver 1","version":"1"},

{"id":"123#5#process1","packageName":"123","name":"Workflow Process 1","packageId":"123","label":"Workflow Process 1 ver 5","version":"5"}\]}

3. But to get the process under the " Engineers Association " package i can do this method call:-

web/json/workflow/process/list?packageId=EngineersAssociation

{"total":1,"data":{"id":"EngineersAssociation#42#process1","packageName":"Engineers Association","name":"Workflow Process 1","packageId":"EngineersAssociation","label":"Workflow Process 1 ver 42","version":"42"}}


So why the process under the "Engineers Association" package was not returned when i call the http://localhost:8080/jw/web/json/workflow/process/list *method, while it was shown if i call this method *web/json/workflow/process/list?packageId=EngineersAssociation ???? 

Best Regards

  • No labels