Use of Decision in JBPM

xiaoxiao2021-03-06  41

Decision is a very important Node in JBPM, which is used frequently in our general workflow system, talking about its use.

1: If the client can easily determine which transition should be reached after Decision, we only need to send the name of the transition to the token, at this time, the engine turns the drive process to the transition.

2: If you use Decision directly, it is based on Beanshell. Beanshell script must assign the name of the selected transfer to the "TransitionName" variable. The variables you can use in the script have two categories: 1) token2) Environment variables

3: Variables can be declared from two places: 1) Environment Variables 2) The start of the script If there is no declaration in the environment variable, then from the script, the former's performance is better. The use example of a beanshell for himself given is as follows : * TransitionName = "Left"; * IF ((SpottedontHeright.equals ("Woman")) * && (Beauty.Equals ("in the eye of the beholder"))) {* transitionname = "right"; *}

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

New Post(0)