Configuring a Synthetic Event Button for the Resume Last Flow Event

The following procedure describes how to configure a synthetic event button for the resume last flow event.

To configure a synthetic event button for the resume last flow event

  1. Define a Resume button on the applet where Siebel CRM must call the event.

    For more information, see Using Siebel Tools.

  2. Set the MethodInvoked property of the button control to reference the ResumeLastIntFlow event.

  3. Use the following script to call the event that the Workflow Process uses to handle the button click. This script passes the contextual information for the event to the Workflow Process event handler. This handler is the name of the view where the event occurs. It is not necessary for you to define this event in the Workflow Process:

    function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
    {  
       if (MethodName == "ResumeLastIntFlow") 
       {
          CanInvoke = "TRUE"; 
          return (CancelOperation); 
       }
       return (ContinueOperation);
    }
         
    function WebApplet_PreInvokeMethod (MethodName)
    {
       // Call Workflow Process Manager to resume the last-run interactive flow
       if (MethodName == "ResumeLastIntFlow") 
       {
          var Inputs = TheApplication().NewPropertySet();
          var Outputs = TheApplication().NewPropertySet();     
          var workflowSvc = TheApplication().GetService("Workflow Process Manager");
          workflowSvc.InvokeMethod("_ResumeLastInteractFlow", Inputs, Outputs);
         
          return (CancelOperation);
         
       }
         
       return (ContinueOperation);
    }