|
|
|
|
|
ActionPlanExecute (Function) In french: PlanActionExécute Runs an instance of the action plan in the software factory from a WINDEV application or from a WEBDEV website. This allows you to automate the triggering of action plans. For example, an action plan for running tests can be started from a batch application. // Runs the instance of action plan for compiling my project InstanceID is int InstanceID = ActionPlanExecute("FacCoord", "admin", "fackey", "PlanCompilMyProject")
Syntax
<Result> = ActionPlanExecute(<Coordinator> , <User> , <Password> , <Instance of action plan> [, <WLanguage procedure>])
<Result>: Integer - Identifier of the action plan instance if it has been started,
- 0 the instance of action plan was not started. The corresponding error message is returned by ErrorInfo.
<Coordinator>: Character string Name of the computer used to coordinate the execution of the action plans. <User>: Character string Username. This user must be allowed to run the action plan on the coordinator. <Password>: Character string User password. <Instance of action plan>: Character string Name of instance of action plan to run. To run an instance of action plan of a given library, the instance name must have the following format:
<Library name> + TAB + <Name of instance of action plan> If the library name is not specified, the first instance of the action plan found corresponding to the specified name will be run. <WLanguage procedure>: Optional procedure name Name of the WLanguage procedure called when the action plan is executed. This procedure is used to follow the execution of the action plan and to find out whether its execution was ended properly. This procedure has the following format: PROCEDURE ProcedureName(<Instance of action plan>, <Current step>, <Progress>, <Status>) where: - <Instance of action plan> is a string corresponding to the name of the instance run.
- <Current step> is a string corresponding to the caption of the current step.
- <Progress> is an integer corresponding to the percentage of execution progress (between 0 and 100).
- <Status> is an Integer constant indicating the execution status:
| | apStatusCompletedFailure | The execution of the plane ended with error. | apStatusCompletedOK | The execution of the plane ended without error. | apStatusDisconnected | The robot used to run the action plan does not respond anymore. | apStatusInProgress | The action plan is currently run. | apStatusPending | The action plan is waiting to be run. | apStatusStartup | The coordinator is going to start the action plan. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|