Unsupported workflow state

29 views
Skip to first unread message

Luca

unread,
Nov 24, 2021, 5:42:32 AM11/24/21
to nflow-users
Hi everyone,

I'm running into a very weird problem: sometimes, when I insert a workflow instance the first state is not called at all and when I go to check into the db, in the nflow_workflow table the state_text column has this phrase: "Unspported workflow state".

The strange thing is that it doesn't happen 100% of the time, but 90%, so sometimes it works like a charm..

What could it be?

If it can be helpful these are my states:
public enum State implements io.nflow.engine.workflow.definition.WorkflowState {
        INSPECTION_START(start, "Starting inspection"),
        GET_BOARD(normal, "Getting board"),
        DO_ALIGNMENT(normal, "Board alignment"),
        INSPECT(normal, "Inspection"),
        SAVE_RESULTS(normal, "Saving all results"),
        PUT_BOARD(normal, "Putting board"),
        INSPECTION_END(end, "Ending inspection"),
        ERROR(end, "Error");
         .......

public IEWorkflow(WorkflowSettings settings) {
        super(TYPE, State.INSPECTION_START, State.ERROR, settings);
        permit(State.INSPECTION_START, State.GET_BOARD);
        permit(State.GET_BOARD, State.DO_ALIGNMENT);
        permit(State.DO_ALIGNMENT, State.INSPECT);
        permit(State.INSPECT, State.SAVE_RESULTS);
        permit(State.SAVE_RESULTS, State.PUT_BOARD);
        permit(State.PUT_BOARD, State.GET_BOARD);
        permit(State.PUT_BOARD, State.INSPECTION_END);
    }

Thanks to all.

nflow-users

unread,
Nov 24, 2021, 5:59:09 AM11/24/21
to nflow-users
Hi,

Do you have any nFlow engine instances running that use the same database but do not have up-to-date workflow definitions?

br, Edvard

Luca

unread,
Nov 24, 2021, 7:54:08 AM11/24/21
to nflow-users
Dear Edvard,

I have smashed my head around for days before your answer because, yes, many nFlow engines (with different states unfortunately) were using the same db....

Thank you very much for your help, I really appreciated it :)

Ciao,
Luca
Reply all
Reply to author
Forward
0 new messages