One java code to run any activiti workflow

cancel
Showing results for 
Search instead for 
Did you mean: 
aabb_activiti
Member II

One java code to run any activiti workflow

hello ,

Im new to activiti, ive done some sample projects following the quick start sample code provided on activiti website.

However, im getting little confused with some concepts:

-First : can, or is there one java code that can run any workflow?

-Second: how can i make a certain task pause and wait a json object to arrive through rest ?

Any help is appreciated

4 Replies
kalpesh_c2
Senior Member

Re: One java code to run any activiti workflow

Hi, 

Play Activiti with

A Guide to Activiti with Java | Baeldung 

To start workflow using spring

Getting started with Activiti and Spring Boot 

To start workflow using rest api refer this

http://hostSmiley Tongueort/activiti-rest/service/runtime/process-instances 

Please refer this question to start workflow using java class

how to initiate activiti workflow from java program - Stack Overflow 

Thanks,

Kalpesh

aabb_activiti
Member II

Re: One java code to run any activiti workflow

Hello Kaplesh,

Thanks for your answer. However, i know how to run a workflow through java code.

but to make my question clear:

Is the code we write in java workflow specific? or there is possibility for one java application to run any workflow only by considering workflow id and process ids....?

In other words, the code provided on activiti website ran the corresponding workflow, but it cant (as much as i know ) to run other workflows.

thanks

kalpesh_c2
Senior Member

Re: One java code to run any activiti workflow

Hi, 
you can run any workflow by required parameters and processId .

Thanks,
Kalpesh

aabb_activiti
Member II

Re: One java code to run any activiti workflow

But what about management of task variables within the workflow? I am thinking about one generalized code to do all this stuff. 

Thanks again.