Closed doubleceston closed 3 years ago
Sorry, I didn't quite understand your question. "Task" is an Action, which is a method that runs within an Activity. A condition is a function that determines whether the transition can be made. Our goal was to minimize the number of elements that need to be drawn in the designer.
Sorry, It's my fault not giving my usage with WorkFlow Engine NET
I want use it to support a rule engine, which may only consists of condition
、action
, and these elements will be organized as a tree just like what WorkFlow Engine NET
does.
But, when I want to express a scene like this :if a > b then do actionA, else do actonB
I found that I need a Activity within a Action which execute result = a > b
, And I need another two Transition : result == true
and result == false
etc
I think it seems a little complicated for me, could you give me some suggestions?
Hi, you are not quite right. You can write expressions like a > b directly in transitions, the other transition can be Otherwise, no Actions need to be created in this case.
ok thank you very much , i'll try it out
Hi, I have read your document here:https://workflowengine.io/documentation/scheme/conditions/ , I have a question:
In your design, Instead of a independent
Activity
or (aka Task
in most workflows) ,Condition
is just an attribute ofTransition
In other products , they usually split
Sequence Flow
andCondition
, Why you combine them inTransition
?