Use of demo-e in jbpm

Source: Internet
Author: User
Tags jbpm

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 ";
*}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.