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.