Provide state tracing and error handling message
In current implementation, it is hard to know what exactly happened during state transition.
The purpose of this issue is to provide more specific information for state tracing and error tracing.
Task contains these properties currently
- status => task running status
- state => current state
- transition => the upcoming transition
- content => task content
These properties should be added
- previousState => from which state
- actions => the actions performed during single execution process which will be cleared before running new round execution of the task
- name => the action name such as
onEnter
- provider => the action provided by which state or transition
- startTime => action start time
- endTime => action end time
- name => the action name such as
- errorCause => which problem cause task status being error
Edited by Arren Ping