Ejemplo n.º 1
0
        public async override Task Execute(ModelExecution message)
        {
            var model = await ModelFlowContext.ModelFlow.FindAsync(message.Id);

            model.Name = "I'm Running";
            ModelFlowContext.Update(message);
        }
Ejemplo n.º 2
0
        public async override Task Execute(NodeExecution message)
        {
            var node = await ModelFlowContext.NodeFlow.FindAsync(message.Id);

            node.Name = "I'm running";
            node.ExecuteOperation(message.Input);

            var nextNodesToExecute = node.LinkedNodes.Select(n => n.Id);

            nextNodesToExecute.ToList().ForEach(next => new NodeExecution {
                Id = next, Input = node.Output.Value
            });

            ModelFlowContext.Update(node);
        }