Sample Action scripts
This example shows how to populate the Debug Log field and the BOD Document field. These fields are displayed in the tab.
Class ActionScript
Inherits FcProcFuncSetEventWF
Function wf_start() As Long
Dim Desc as String = ObjProperty("DESCRIPTION")
PublishDebugginginfo("Description = " & Desc)
ArchiveBOD("ID1","<Root><Child>Bill</Child></Root>")
End Function
The description of the Optiva object is displayed in the Debug Log field. The prefix is “Description =”
. For this example, the description of the Optiva object is CAESAR SIDE SALAD
.
The BOD Document field displays this text: <Root><Child>Bill</Child></Root>
.
Debug Log Field | BOD Document Field |
---|---|
Description = CAESAR SIDE SALAD |
<Root><Child>Bill</Child></Root> |
These examples show how to use the PublishDebugginginfo
scripting method to populate the Debug Log field and the Action Status field.
PublishDebuggingInfo(“The action has failed”, "FAILURE")
PublishDebuggingInfo(“The action has succeeded”, "SUCCESS”)
PublishDebuggingInfo(“The paint is green”, "COLOR")
Debug Log Field | Action Status Field |
---|---|
The action has failed | FAILURE |
The action has succeeded | SUCCESS |
The paint is green | COLOR |
The Action Status is a free form string. Add any information that you deem to be useful when looking at the results.
For more information about the scripting methods, see the Infor PLM for Process Scripting Administration Guide.