[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-21 Thread [EMAIL PROTECTED]
Raised http://jira.jboss.com/jira/browse/JBPM-679

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952448#3952448

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952448


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-21 Thread [EMAIL PROTECTED]
Dutch beer? I don't think the beer God will approve :-))

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952378#3952378

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952378


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-21 Thread kukeltje
Amen

(I've been told by one of the apostles that a bottle of Dutch beer helps)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952352#3952352

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952352


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-21 Thread [EMAIL PROTECTED]
Charles,

You are correct. This is not (yet) supported AFAIK. If you would like it, file 
a JIRA issue and pray to the jBPM God that he likes it ;-)

Cheers,
Koen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952304#3952304

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952304


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-20 Thread [EMAIL PROTECTED]
I can get what I need by associating an action with a node-enter event on the 
process-state and then having that action copy properties into context 
variables, i.e.

  "" +
  |   "  " +
  |   "" +
  |   "  " +
  |   "  " +
  |   "" +
  |   "  " +
  |   "JBOSS_HOME/lib/jboss-${timestamp}.jar"+
  |   "  " +
  |   "" +
  |   "" +
  |   "" +  
  |   "" +
  |   "  " +
  |   "  " +
  |   ""

and in CopyActionHolder

 executionContext.getContextInstance().setVariable("backup", getBackup());

and

  "" +
  |   "  " +
  |   "" +
  |   " " +
  |   "  " +
  | "   JBOSSboo"+
  |   "  " +
  |   "   " +
  |   "  " +
  |   "  " +
  |   ""

then in MyActionHandler I can do 

Object object = executionContext.getContextInstance().getVariable("backup");

This approach works, but seems like a bit of a hack.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952220#3952220

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952220


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: specifying context variables through the process definit

2006-06-20 Thread [EMAIL PROTECTED]
We do not have a syntax for automatically substituting the value of a variable 
while initializing an action handler field. You can, however, interpret the 
literal from the process definition as a variable name and retrieve the 
variable value from the execution context:
public class MyActionHandler implements ActionHandler {
  | 
  |   private String source;
  | 
  |   public void execute(ExecutionContext executionContext) {
  | Object value = executionContext.getVariable(source);
  | // ... do something with the variable value
  |   }
  | }
Your process definition would specify the variable name rather than a specific 
value:

  |   pathToPatch
  | 
Regarding child processes, you can assign values from the variables of the 
parent process to the variables of the child process, but not literal values. 
In your scenario, you can pass the required values in variables and then use 
the above technique to access these values from action handlers.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952200#3952200

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952200


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user