Use of Variable in jbpm

xiaoxiao2021-03-06  39

A process instance can have multiple token, token is a father and child relationship: token tokenab = new token (Tokena, "AB"); uplink code means building a tokenab below tokena, the new TOKEN name is " AB ".

Ci.createvariable (tokena, "a", new integer (3)); Indicates that establishing a variable within the Tokena range, its name "a", the value is new integer (3) to establish this variable, tokena below tokena You can see the Variable, and the top of Token can not see.

Only createvariable can create variable on a token, and other methods can only create variable on Roottoken. Such as: Ci.setVariable (tokena, "a", new integer (3)); actually built a name on roottoken VARIABLE MAP VARIABLES = new hashmap (); variables.put ("a", new integer (3)); variables.put ("b", new integer (4)); ci.addvariables (variables) The above four rows of code have established two variable on roottoken.

You can modify the Variable created in the parent token in the sub-Token.

-------------------------------------------------- -----------------------------------

2006.2.20 Modifications: 3.1 It has been possible to create a Variable on a token through the setvariable method.

This should be a modification of previous bugs.

转载请注明原文地址:https://www.9cbs.com/read-68555.html

New Post(0)