JBoss Community

Start an InstanceProcess From a State

created by 7ab3rn4t3 7ab3rn4t3 in jBPM - View the full discussion

Hello

 

let's suppose that

 

I start a process in this way from a Servlet

 

Map<String, Object> params = new HashMap<String, Object>();

params.put("name", "Arthur");

 

ProcessInstance istance = ksession.startProcess("com.sample.bpmn.hello", params);

 

and put it in the httpSession.... am I correct?

 

let's suppose that on the state 5 I will save in my DB my process params (I don't know how yet!!!!!!!!!)

 

first of all:

How can I get that params map from a UserTask or Script in JBPM so that I can make a Class that save them on my db????

 

the Tomorrow

I reLoad my page and want to create a new process that begin from the state that I left the day before.

Of course I can detect the state by a parmeter saved in that map.....

 

but is there a way to begin a process from a specific state ?

which is ?

 

Thanks in advance

fabio

Reply to this message by going to Community

Start a new discussion in jBPM at Community