Code Monkey home page Code Monkey logo

wflite's People

Contributors

aratomo-arazon avatar tomoharuaraki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wflite's Issues

Unexpected behavior of SequenceActivity with a SequenceActivity inside

Hi there.
I'm currently using the WFLite library, it is really useful and is great for lightweight workflows.

I have a SequenceActivity running inside another SequenceActivity, and it fails to determine if the inside SequenceActivity is stopped.
When one activity inside a SequenceActivity returns false, the SequenceActivity status is ActivityStatus.Stopping and then it not hits the:

if (_current.Status.IsStopped() || _current.Status.IsSuspended())
{
 return;
}

causing the next activity in the sequence to get executed.

Sample:

var seqActivity = new SequenceActivity()
            {
                Activities = new List<IActivity>()
                {
                    new SequenceActivity()
                    {
                        Activities = new List<IActivity>()
                        {
                            new Act1_1(),
                            new Act1_2(), //returns false
                            new Act1_3(),
                        }
                    },
                    new Act2_1(),                    
                }
            };

await seqActivity.Start();

Output:

Act1_1 exec
Act1_2 exec
Act2_1 exec

Question: Is this the expected behavior?

I'm willing to contribute to this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.