This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

How to configure a flow decision

Apr 16th, 2010, 07:58 AM

Hi

I'm struggling to configure a decision flow in my job definition. The job is triggered with TaskExecutorPartitionHandler. We are reading all the file's in from a directory. The files are processed in there own step and the configuration for reading the file is done with lazy binding.
In the directory we get files which can't be processed(wrong format) and has to be put in a error directory. The files which has been succesfuly processed are put in the done directory.

"Missing state for..." means there is a transition but no state defined for it to land on. Your job as it stands in the first code snippet clearly has no state called "moveToDoneTasklet" so that makes sense. Maybe you didn't post all the steps?

The "unreachable..." error also is pretty explicit: you have added a state to your job (the decision in this case) to which there are no transitions declared. Somewhere in there you need a next="whatEverDecision".