cancel
Showing results for 
Search instead for 
Did you mean: 

Get processDefinition tasks , start event, end event using Java, without creating a process instance

mansi
Champ in-the-making
Champ in-the-making
Hi,
My requirement is to get the details about deployed processDefinition, like Tasks in it, its StartEvent, EndEvent.
But I want to have these without creating a process instance.
Is there a way to achieve this?
I have been looking into activiti user guide as well as javadocs, but couldn't find a way.
Any help will be appreciated. Thanks.
30 REPLIES 30

jbarrez
Star Contributor
Star Contributor
The model class is an entity that is used when creating a BPMN process definition in the web modeler. It stores a byte array for the data the editor uses.

mansi
Champ in-the-making
Champ in-the-making
Alright, Thanks a lot.

mansi
Champ in-the-making
Champ in-the-making
Hello, I noticed that only the UserTasks are stored in database and can be accessed later using the
TaskService & HistoricTaskInstance. But if I want to access my ServiceTask / ScriptTask or any other task, how is that possible?

Alternatively is there a way to set variable when process is at particular task and later be able to access the taskId where we set the variables?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Try to Increase history log level.

Regards
Martin

mansi
Champ in-the-making
Champ in-the-making
I tried HistoryLevel.FULL, it doesn't work.

jbarrez
Star Contributor
Star Contributor
Check the historicActivityInstance query. A service task is simply an 'activity' for the engine.

mansi
Champ in-the-making
Champ in-the-making
Yes there its available. Thanks.

mansi
Champ in-the-making
Champ in-the-making
Hi,
When we set a due date in UserTask,
is there a way to tell activiti to complete the task when due date is reached?

jbarrez
Star Contributor
Star Contributor
No. A user task is meant for humans to complete.
However, it is easy to write a thread that queries on user tasks with a certain due date and complete them programmatically.

mansi
Champ in-the-making
Champ in-the-making
Okay thanku.

Is there a Activiti modeler available for netbeans?
I searched through other threads in this forum but I found all negative answers from a couple of years back, so I thought would ask here.