|
|
Workflow Script
These are scripts that can be used to change the appearance and/or Text of a Workflow Object. These include amending the Text, Colour, Hint, Visible/Hide, etc.
To see this in action we will change the colour of a Workflow Object.
You should start by bringing a workflow to the desktop. If you don’t have a workflow of your own then you should use the workflow supplied with Ostendo. To bring this to the desktop carry out the following.
Click on File>System Configuration>User Security and Options and click on the ‘Workflow’ tab. In that screen ‘check’ the ‘Enable Workflow’ checkbox then click in the centre of the lower panel. Click the ‘Add’ button and add the following line:
Caption: Workflow
Filename: Locate SampleWorkflow.dat which can be found under the Ostendo folder
Sequence: Leave ‘as is’
Save and close out of the screen. You will find that the workflow now displays on your Ostendo Desktop.
In the workflow screen (NOT on an object) ‘right mouse’ and select ‘Edit Workflow’. The Workflow Editor will start up. In the Editor click on and object (to select it) then note the ID number in the Inspector Options (down the right hand side). If you have used Workflow SampleWorkflow.dat then you will find that the ‘Customers’ Object will have an ID of 32.
Go into File>Custom Scripts and add a new Custom Script called (say) Workflow. In the ‘Script’ tab enter the following:
Begin
SetWorkflowObjectColour(32,claqua);
Showmessage('Colour Updated');
End.
Where 32 is the Object ID
Save and exit
If you now run the Script (Custom>Workflow) you will see that the fill colour of the Object will take place.