Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

Code Block
langjavascript
{"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*

Code Block
langjavascript
{"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

Code Block
langjavascript
{"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