Demo-e is a very important node in jbpm and is frequently used in our general workflow systems,
This article describes how to use it.
1: If the client can easily determine which transition should be reached after deactivating, we only need
The transition name can be sent to the token as signal. At this time, the engine redirects the driver flow to
Transition.
2: If demo-e is used directly, it is based on beanshell.
The beanshell script must assign the selected transfer name to the "transitionname" variable.
There are two types of variables available in the script:
1) token
2) Environment Variables
3: variables can be declared in two places:
1) Environment Variables
2) Start of the script
If the environment variable is not declared, it is read from the script, and the former has better performance.
An example of using a beanshell provided by jbpm itself is as follows:
* Transitionname = "Left ";
* If (spottedontheright. Equals ("woman "))
* & (Beauty. Equals ("in the eye of the beholder "))){
* Transitionname = "right ";
*}