gianluc ricciardi [
http://community.jboss.org/people/gianluca.ricciardi] created the
discussion
"Re: restart running process"
To view the discussion, visit:
http://community.jboss.org/message/565375#565375
--------------------------------------------------------------
Thanks Michael 4 your response. I Mean "resume" , then I'll do so. I found
the way how to execute query across jbpm tablels.
Something like this:
String pid=processEngine.execute(
new Command<String>() {
private String id;
public String execute(Environment environment) throws Exception {
DbSessionImpl dbSessionImpl = environment.get(DbSessionImpl.class);
Session session = dbSessionImpl.getSession();
List<Variable> list =
session.createQuery(
"from " +
org.jbpm.pvm.internal.type.Variable.class.getName()).list();
Variable var = list.get(0);
String id_ = var.getExecution().toString();
return id_.substring(id_.indexOf("[")+1,id_.indexOf("]"));
}
}
);
String pid=processEngine.execute(
new Command<Void>() {
private String id;
public String execute(Environment environment) throws Exception {
DbSessionImpl dbSessionImpl = environment.get(DbSessionImpl.class);
Session session = dbSessionImpl.getSession();
List<Variable> list =
session.createQuery(
"from " +
org.jbpm.pvm.internal.type.Variable.class.getName()).list();
...
}
}
);
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/565375#565375]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]