| previous section: Integrating Almo in Java applications: Loading and executing a Workflow |
next section: Integrating Almo in Java applications: Customizing the Almo GUI |
Integrating Almo in Java applications: Using the Almo GUI
The Almo panel for applications
Almo provides a panel, which you can use in your applications to visualize and access the Workflow. You can get with this code:
JFrame view = ... WorkflowConfiguration w = ... WorkflowPanel panel = AlmoGUIFactory.getWorkflowPanel(w,view,true);![]()
![]() |
The last argument determines whether the WorkflowConfiguration shall be visualized or not. If you convey false, although no WorkflowInstance is available, the WorkflowConfiguration will be shown anyway. |
Since the WorkflowConfiguration shall be shown, this will result in the following GUI:
The (+) indicates that there are elements you can add, the (-) indicates that this element can be removed. Right-click on the Workflow node and add the Task "t3".
Then create the instance and execute the Workflow.
If you right-click on any element the description is available. Right-clicking on an Operation will give you access to the errors of the Operation, depending on which error method was used to convey the error to Almo, you might be able to view the stack trace of an Exception.
On the screenshots you see the DefaultTaskPanel on the right-hand side. But it is also possible to create customized panels for each element. The next section will tell you how.
| previous section: Integrating Almo in Java applications: Loading and executing a Workflow |
next section: Integrating Almo in Java applications: Customizing the Almo GUI |
