What Java workflow framework can I use to link with gui

Context

I need to create a development workflow (checkin, checkout, validation ...).

For some transition states, the user must fill out a report. When the user changes the state of object O from state S1 to state S2, he must fill out a report.

  • The user can cancel the report, but remains in state S1.
  • The user can close the browser, O remains in state S1.
  • If he checks the report, O goes into state S2.

I am trying to find a structure where I can implement these limitations.

jBPM / Drools

I can implement 1 and 3 with the โ€œHuman Challengeโ€ between S1 and S2, but it overwhelms a little simple report. To implement 1, I have to do a bi-directional connection between S1 and the Human Task. I cannot do step 2: if the user closes the browser, O remains in the "Human Task" state.

Another way?

Another way is to have an external file. This file will give for this transition S1-> S2, which will be displayed on the display.

Is there another way? And what, in your opinion, is the best use case?

Thank you for your help.

+3
source share
1 answer

I would do this:

Add your own commitState boolean attribute (true by default) to all nodes in the process.

, 3 : S1 - commitState = true, - commitState = false, S2 - commitState = true

S1 , , db , S1. sth, node Report, "SubmitReport", db .

, - , , db S1.

, S1, , .

, S2, .

, db - , StatefulBean ( jbpm 3, StatefulBean, , jbpm, ).

+2

Source: https://habr.com/ru/post/1794384/


All Articles