Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
I need to build a function that enables users to start a joget process for an external system, so i am following these steps:-
1. To start a process i will call this API:-
/web/json/workflow/process/start/ProcessDefID
but to be able to get the ProcessDefID (Process definition Id) I am thinking of following this approach:-
1. to get the list of packages using the following API:-
/web/json/workflow/package/list
2. After that to get the list of processes under the associated package using the following API, where the packageid will be returned from the previouse API call:-
/web/json/workflow/process/list?packageid=
Then from the returned JSON i can extract the process definition ID and start the process.
so my question is , if there is a single API call which enables me to directly retrieve all the process definition IDs inside my system (instead of retrieving the packages---> then the processes under specific package)?
Best Regards
4 Comments
Hugo
Hi,
Please study http://dev.joget.org/community/display/KB/JSON+API. I'm pretty sure there's one that fits you.
Thanks.
BPMdesigner
i check these API, but can not find a suitable API which directly return Proces Definition Ids for all the processes.
Best Regards
Hugo
Hi there,
Have you checked out "web/json/apps/published/processes" method?
Cheers
BPMdesigner
seems that this method was added newly.. but i have noted that not all applications will be listed here in this method. for example if i call this API it will list all the applications web/json/workflow/package/list . while when i called web/json/apps/published/processes some applications will not appear although they have processes, and i can view their processes using
web/json/workflow/process/list?packageid=...