Help / WLanguage / WLanguage functions / Standard functions / Windows management functions / Software Factory functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Runs an instance of the action plan in the software factory from a WINDEV application or from a WEBDEV site. 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.
// Exécute l'instance de plan d'action de compilation de mon projet
IDInstance is int
IDInstance = ActionPlanExecute("CoordFab", "admin", "clefab", "PlanCompilMonProjet")
<Result> = ActionPlanExecute(<Coordinator> , <User> , <Password> , <Instance of action plan> [, <WLanguage procedure>])
<Result>: entier
  • Identifier of instance of action plan if this one was started,
  • 0 the instance of action plan was not started. The corresponding error message is returned by ErrorInfo.
<Coordinator>: Character string
Name of computer used to coordinate the execution of action plans.
<User>: Character string
Name of the user. 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:
<Nom de la bibliothèque> + TAB + <Nom de l'instance du plan d'action>
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 Procedure WLanguage 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 NomProcédure(<Instance du plan d'action>, <Etape en cours>,
<Avancement>, <Etat>)
  • <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:
    apStatusCompletedFailureThe execution of the plane ended with error.
    apStatusCompletedOKThe execution of the plane ended without error.
    apStatusDisconnectedThe robot used to run the action plan does not respond anymore.
    apStatusInProgressThe action plan is currently run.
    apStatusPendingThe action plan is waiting to be run.
    apStatusStartupThe coordinator is going to start the action plan.
Component: wd270std.dll
Minimum version required
  • Version 20
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help