[jboss-user] [jBPM] - Re: Help with examples

Julio Faerman do-not-reply at jboss.com
Wed Mar 9 09:58:05 EST 2011


Julio Faerman [http://community.jboss.org/people/jmfaerman] created the discussion

"Re: Help with examples"

To view the discussion, visit: http://community.jboss.org/message/592162#592162

--------------------------------------------------------------
Yes, that did it  :) 
{code:xml}
    <scriptTask id="_2" name="Hello" >
      <script>
          System.out.println("### Starting Greetings process ###");
          org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();
          kcontext.getKnowledgeRuntime().insert(process);
          System.out.println("### Inserted process instance ###");
      </script>
    </scriptTask>
{code}

But it is stil a bit of a hack... it would be nice to be able to "prepare" the process before starting it or even having the process instance inserted automatically.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/592162#592162]

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/20110309/827907be/attachment.html 


More information about the jboss-user mailing list