myGrid

Several instance containers --> Several runs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5
  • Component/s: None
  • Labels:
    None

Description

If for some reason there is several instance containers in the active Zaria profile, each of them will be notified when you click "Run" on a workflow, and so each of them will make the EnactorInvocation panel.

However, the actual starting of the workflow is for some reason performed by the said EnactorInvocation panel in the constructor.

This does not cause any major problems because the thread that is spawned to start the second workflow fails early with an exception:

ERROR 2006-11-07 13:04:38,485 (uk.ac.soton.itinnovation.freefluo.core.flow.FlowState:131) - Illegal state transition. Received: run. flowId: 0 while in state: RUNNING
Exception in thread "Thread-207" java.lang.IllegalStateException: Illegal state transition. Received: run. flowId: 0 while in state: RUNNING
at uk.ac.soton.itinnovation.freefluo.core.flow.FlowState.run(FlowState.java:132)
at uk.ac.soton.itinnovation.freefluo.core.flow.Flow.run(Flow.java:293)
at uk.ac.soton.itinnovation.freefluo.exts.taverna.TavernaWorkflowInstance.run(TavernaWorkflowInstance.java:112)
at uk.ac.soton.itinnovation.freefluo.main.EngineImpl$1.run(EngineImpl.java:195)

However, before this, the input map is set again, and this could potentially cause problems.

There is really no reason why this should be done from the GUI constructor either, preferably just some utility method somewhere would be enough.

Issue Links

Activity

Hide
Stian Soiland-Reyes added a comment - 2006-11-13 16:37

As of TAV-219, "TODO: Run workflow if no inputs are needed! (Requires refactoring out run-method from InvocationPanel)"

Which would require a call to that utility method as well.

Show
Stian Soiland-Reyes added a comment - 2006-11-13 16:37 As of TAV-219, "TODO: Run workflow if no inputs are needed! (Requires refactoring out run-method from InvocationPanel)" Which would require a call to that utility method as well.
Hide
Stian Soiland-Reyes added a comment - 2006-11-29 12:28

TAV-252, improving the management of input parameters.

Invoking a workflow is now done by the File-->Run
menu, which will pop up a window for the parameters, if needed,
otherwise it will go immediately to the "Results" perspective and start
the exectuion.

The pop-up window is similar to the old one, but also includes the
workflow diagram (solves TAV-262) and description. Future improvements
will include the parameter descriptions and move some of the buttons
around.

ModelMap.INVOKE_* removed, use
WorkflowInputPanelFactory.invokeWorkflow() instead

WorkflowModelInvokeSPI removed, as WorkflowInputMapBuilder is no longer
supposed to be used within a perspective, but just included inside the
new WorkflowInputPanel pop up.

RunWorkflowAction menu item "Run workflow" added.

EnactPerspective now called "Results" - and now only contains the
workflow instance container.

WorkflowInputPanel and WorkflowInputMapBuilder still need some cleanup.

EnactorInvocation no longer starts the actual workflow running, this is
done by WorkflowInputPanelFactory.invokeWorkflow() instead. Fixes
TAV-227.

(Any suggestions for a better location for the invoke* methods welcome)

Show
Stian Soiland-Reyes added a comment - 2006-11-29 12:28 TAV-252, improving the management of input parameters. Invoking a workflow is now done by the File-->Run menu, which will pop up a window for the parameters, if needed, otherwise it will go immediately to the "Results" perspective and start the exectuion. The pop-up window is similar to the old one, but also includes the workflow diagram (solves TAV-262) and description. Future improvements will include the parameter descriptions and move some of the buttons around. ModelMap.INVOKE_* removed, use WorkflowInputPanelFactory.invokeWorkflow() instead WorkflowModelInvokeSPI removed, as WorkflowInputMapBuilder is no longer supposed to be used within a perspective, but just included inside the new WorkflowInputPanel pop up. RunWorkflowAction menu item "Run workflow" added. EnactPerspective now called "Results" - and now only contains the workflow instance container. WorkflowInputPanel and WorkflowInputMapBuilder still need some cleanup. EnactorInvocation no longer starts the actual workflow running, this is done by WorkflowInputPanelFactory.invokeWorkflow() instead. Fixes TAV-227. (Any suggestions for a better location for the invoke* methods welcome)

People

Vote (0)
Watch (0)

Dates

  • Created:
    2006-11-08 09:56
    Updated:
    2006-11-29 12:28
    Resolved:
    2006-11-29 12:28