osworkflow / docs / Getting_Started.html

Full commit
<html><head><title>Getting Started</title></head><body>
<ul class="star">
<li>Up to <a href="Documentation.html">Documentation</a></li>
<li>Back to <a href="Designer_Installation.html">Designer Installation</a></li>
<li>Forward to <a href="Workspaces.html">Workspaces</a></li>
</ul><p class="paragraph"></p>Before editing and creating workflows, a workspaces must be created. The first time the designer is started, you will be prompted to either load in an existing workspace, or create a new one. Choose create a new workspace.<p class="paragraph"></p>You will be presented with a file dialog, create a new directory and enter a name for your workspace file inside this directory. All the files a workspace uses are created alongside the master workspace file, which is why it is best to ensure that it goes into its own directory.<p class="paragraph"></p>Now that you have a workspace loaded in, it's time to add or import workflows. Let's import a workflow first, just to see what a complete one looks like.
<h3 class="heading-1">Importing a workflow
Go to the <b class="bold">file</b> menu, and select <b class="bold">import</b>. You will be presented with a dialog box prompting you to specify the location and type of import. You can import either a local workflow descriptor, or specify a remote one via its URL. OSWorkflow uses a number of descriptors in its testcases, so these can all be imported remotely. A list of these can be viewed <span class="nobr"></img><a href="">here</a></span>. Select any one of those examples, and copy the 'as text' link and enter that into the URL box. The link will look something like <span class="nobr"></img><a href="*checkout*/osworkflow/src/test/samples/auto-split.xml?rev=1.2&amp;content-type=text/plain">&#104;ttps://*checkout*/osworkflow/src/test/samples/auto-split.xml?rev=1.2&amp;content-type=text/plain</a></span>
The Designer will now import this file, and when the import is complete, you will see it listed in your workspace and be able to view it.
<h3 class="heading-1">Layout
Once you have successfully imported a workflow, the designer will check if a layout exists for the specified workflow. The workflow layout determines where all the labels and steps are placed on the graph. If no layout exists, then a reasonable attempt is made to lay out the items in the workflow. You can force this automatic layout by choosing __Layout-&#62;Layout graph' from the menu.<p class="paragraph"></p>If you modify the layout (by dragging steps and labels around, for example), make sure you save the workspace. This will ensure that your layout is persisted and will be used the next time you view this graph.
<h3 class="heading-1">Creating a workflow
Instead of importing an existing workflow, you might wish to create a new one from scratch. Select <b class="bold">File-&#62;New-&#62;New Workflow</b> from the menu. You will be prompted to specify a workflow name.
<h3 class="heading-1">Editing a workflow
 Once the workflow is created, a new tab wil display it and will have an initial step in it. You can then drag steps, joins, and splits from the toolbar to create these items in the workflow. In order to create actions between steps, simply move the cursor over the red dot in the middle of every step until the cursor changes, then drag it to the resultant step. The designer will disallow things like dragging results to an initial step, for example.<p class="paragraph"></p>To edit the information associated with a particular step or result, select it, and the detail tab on the left hand side will be populated with the pre and post functions, as well as conditions if relevant. You can also modify the step name and view here. Alternatively, it is possible to modify names on the graph directly by double clicking on a label.<p class="paragraph"></p>Once you are satisfied with the changes, save your workspace. Note that while the designer will allow you to create certain types of invalid workflows, you will not be able to save them until they are valid. Any attempts to save an invalid workflow will result in an error dialog box hopefully explaining why the workflow is invalid.</body></html>