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.
