Skip to content

Flow documentation · legacy product

Flo_ExecuteAction ​

Declaration ​

C# public static extern bool Flo_ExecuteAction(string ActionFID, TExecuteCallBackEvent CallBack);

Delphi function Flo_ExecuteAction (ActionFID : PChar; CallBackProc : TExecuteCallBackEvent) : boolean; stdcall;

Example ​

csharp
try
{
TExecuteCallBackEvent ExecuteCallBack = new TExecuteCallBackEvent(ExecuteCallBackHandler);
Boolean result =FlowAPI.Flo_ExecuteAction("00000000-0000-0000-0000-000000000000", ExecuteCallBack);
if (result) MessageBox.Show("Action execution accepted for processing"); else MessageBox.Show("Action execution not accepted for processing");
}
catch (Exception ex)
{
MessageBox.Show("Exception while trying to execute Action - " + ex.Message);
}
pascal
Delphi
try
Result := Flo_ExecuteAction('00000000-0000-0000-0000-000000000000', ExecuteCallBackHandler);
if Result then
showmessage('Action execution accepted for processing')
else
showmessage('Action execution not accepted for processing');
except
on e : exception do
showmessage('Exception while trying to execute Action - ' + e.Message);
end;

Description ​

Executes the Action with the specified ActionFID. The ActionFID can be found by looking at the FID column in the FLO_ACTIONS table of the configuration database. The function returns a True or False response indicating whether the action has been accepted for processing.

Because the action will execute Asynchronously you cannot use the result of this function to determine success of the action, instead you need to pass a "call back" procedure that is called once the Action has completed processing. This call back procedure will indicate the success or failure of the action execution.