[jboss-user] [jBPM] - Re: restart running process
gianluc ricciardi
do-not-reply at jboss.com
Thu Oct 7 10:08:49 EDT 2010
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101007/fe29f9f8/attachment-0001.html
More information about the jboss-user
mailing list