mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-06 16:06:34 +08:00
优化了流程的进行
This commit is contained in:
@@ -159,11 +159,14 @@ namespace Serein.NodeFlow
|
||||
|
||||
IFlipflopContext flipflopContext = await func.Invoke(md.ActingInstance, parameters);
|
||||
|
||||
if (flipflopContext.State == FlowStateType.Succeed)
|
||||
ConnectionType connection = flipflopContext.State.ToContentType();
|
||||
|
||||
if (connection != ConnectionType.None)
|
||||
{
|
||||
singleFlipFlopNode.FlowState = FlowStateType.Succeed;
|
||||
singleFlipFlopNode.NextOrientation = connection;
|
||||
singleFlipFlopNode.FlowData = flipflopContext.Data;
|
||||
var tasks = singleFlipFlopNode.SuccessorNodes[ConnectionType.IsSucceed].Select(nextNode =>
|
||||
|
||||
var tasks = singleFlipFlopNode.SuccessorNodes[connection].Select(nextNode =>
|
||||
{
|
||||
var context = new DynamicContext(SereinIoc,flowEnvironment);
|
||||
nextNode.PreviousNode = singleFlipFlopNode;
|
||||
|
||||
Reference in New Issue
Block a user