-
Hi @rsoika , I have some questions about using rest API to be sure I am doing things in a correct way. I want to build custom user interface on top of imixs-microservice. The simple scenario is like this:
I am calling /api/model to get the list of processes to show for user as an option to create a new instance of process. For creating new instance I need modelversion, processid, activityid. So I can get modelversion from this call but how can I get the other two required parameters? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
HI @pirtwo , introducing the new Open-BPMN API the Imixs Rest API missed some of the methods you are searching for.
which will return usually the Start Task for given process (group) in your model (connected to start event) The other use cases are covered by the Rest API:
You can also use the search API to search specific data from your application/workflow logic. For example search all completed workitems in 2024
Find details here: https://www.imixs.org/doc/engine/queries.html In general a good practice is to assign you workitems to logical application specific categories. For example you can define departments in your application like a 'Sale Department' or the 'Marketing Department'. Create these departments by a small org-unit model. Now you can assign your workitem to a department by using the item
or you can search again with the search API
Feel free to ask if you have further question. === |
Beta Was this translation helpful? Give feedback.
-
Thank you @rsoika for your detailed answer. I wonder is the |
Beta Was this translation helpful? Give feedback.
HI @pirtwo , introducing the new Open-BPMN API the Imixs Rest API missed some of the methods you are searching for.
So normally you would start a new Task with giving the version and inital TaskID.
But with the latest release you can also ask for all so called "Start Tasks"
/model/{version}/groups/{group}/start
which will return usually the Start Task for given process (group) in your model (connected to start event)
The other use cases are covered by the Rest API:
/workflow/tasklist/owner/{owner}
- shows all tasks assigned to a user (where 'null' opens the task list for the current user)/workitem/events/{uniqueid}
- shows all events available for a given process instance/workflow/task…