You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
constworker=Finity.configure().initialState('ready').on('task_submitted').transitionTo('running').state('running')// here I have the context.eventPayload// but if I want to inside the worker gerate a data to use in another state?.do((state,context)=>processTaskAsync(context.eventPayload)).onSuccess().transitionTo('succeeded').onFailure().transitionTo('failed').onTimeout(1000).transitionTo('timed_out').global().onStateEnter(state=>console.log(`Entering state '${state}'`)).start();