JBPM tokensignaling technology

xiaoxiao2021-03-06  56

The most important concepts in JBPM should be token (Signal) technology, which can be found in the workflow engine in the computer network.

We look like the following code: // Pd is Process Definition, Pi is Process InstanceProcessInstance Pi = New ProcessInstance (PD); // Startup Process Pi.Start (); // Get Rooted Token Token = Pi.Gtroottoken (); / / Send a letter token.signal ();

Token's Signal method can also be sent to the Transition parameter. This method sends the signaling to token so that the token will be activated and leave the current state along the specified transition (if it does not specify the transition, you will leave along the default transition. Current state).

What is JBPM implementation? In fact, it is very simple: 1) token records the current state, only the current state (or node) has the token 2) After the Token is sent to Signal, the current state receives the signal 3) Current state) After passing the TRANSITIONS for the token to Signal, it is not strong, and the token is not strongly transmitted to the next state. 5) According to the location of the token, the state of the process has changed.

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

New Post(0)