cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 5.18 problem

pred05
Champ in-the-making
Champ in-the-making
Hi,
i have a problem with activiti 5.18.0.0 version. I don't know if it's me or not.
I have made a webservice which have a processEngine like an API with jobs executor desactivate. I want just use the processEngine to make request with the TaskService like complete, get all taks for specific user,…


<property name="jobExecutorActivate" value="false" />
<property name="asyncExecutorEnabled" value="false" />
<property name="asyncExecutorActivate" value="false" />


In Activiti 5.17 i haven't any problem when i complete a task. i have just note the BpmnDeployer processing my bpmn file and it png.
In Activiti 5.18 when i complete a task in the same context. My web service try to load the next process's step i don't know why. i see that because in my process i use a service which is call in some expression in the process, only the listener which have the real engine with activate job executor has the class so when the web service try to resolve the expression it raise an exception. it is strange because i haven't this problem with 5.17.

All tasks is asynchronous. Do you have an idea ?
12 REPLIES 12

trademak
Star Contributor
Star Contributor
I'm a bit lost about your setup. Why do you have a "client" Activiti Engine and a "server" Activiti Engine?
Can you add more background information about what you are trying to achieve. Because this should not be a reason to make the sub process asynchronous I think.

Best regards,

pred05
Champ in-the-making
Champ in-the-making
Ok, i want to separate the jobExecutor ("server" Activiti Engine) and the API ("client" Activiti Engine) to distribute calculations. Only the "server" Activiti Engine must execute job.
i want an API which is responsible to push event to the Activiti Database and a server which is responsible to interpret this event and execute it.
An other advantages is when we want to put in production the code. If i edit a BPMN only the "server" Activiti Engine is to update.

My problem is more global than the sub process. All task is asynchronous because when a task is synchronous the "client" Activiti Engine try to execute the job even if i disable the jobexecutor. When i set a task asynchronous, the "client" don't try to execute the job and it is the "server" Activiti Engine which do it as i want. To have all task asynchronous is not a for a modeling reason but to force the "client" Activiti Engine to not execute jobs and just push a message in the database.

For example :
- API : someone want start workflow X
- SERVER : someone want start workflow X so i instantiate it and launch the first task

- API : someone want complete the task "task123"
- SERVER : someone want complete the task with id "task123" so i complete it and instantiate the next task.

i don't know if i'm clear, don't hesitate to ask more information.
Thanks.

pred05
Champ in-the-making
Champ in-the-making
I thought about my question, i just need to know if it is possible to configure the process engine for only set message in the data base without trying to execute any task ?

EDIT: i have trying to set an expression in a sample task and i have the same problem. It is not a problem with the SubProcess. The process engine try to reassess the task's expression after having completed it.