cancel
Showing results for 
Search instead for 
Did you mean: 

One java code to run any activiti workflow

aabb_activiti
Champ in-the-making
Champ in-the-making

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 4

kalpesh_c2
Star Collaborator
Star Collaborator

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

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

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

Thanks,
Kalpesh

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

Thanks again.