Siebel Business Process Designer Administration Guide for Financial Services > Designing Workflow Processes > Using Runtime Events >

Creating Buttons that Invoke Workflow Processes

To create a button that invokes a workflow process

  1. From Siebel Tools, configure a button on an applet and specify the MethodInvoked property. For more information, see Siebel Tools Reference.
  2. To enable the button, override the PreCanInvokeMethod property. Next, edit the server script and compile your changes to the Siebel repository file. The following example is specific to Siebel VB:
  3. Function WebApplet_PreCanInvokeMethod (MethodName As String, CanInvoke As String) As Integer

    If MethodName = "<Name>" Then

    CanInvoke = "True"

    WebApplet_PreCanInvokeMethod = CancelOperation


       WebApplet_PreCanInvokeMethod = ContinueOperation

    End If

    End Function

  4. Define a workflow process. To invoke this workflow process from a button click, specify a runtime event in one of the following ways:

Table 34. Runtime Event Field Values
Event Object Type
Event Object
Name of the business component on which the applet that contains the button is based.
Sub Event
Name of the method set in step one. The Sub Event name must be unique.
Event Cancel Flag
True. If this flag is not checked, the error "The specialized method <Method Name> is not supported on this business component" will result when running the workflow process.

NOTE:  If users click the button when there are no workflow process instances waiting, they will receive the error message "Cannot resume process <Process ID> for object <Object ID>". You can prevent this error by requiring users to run a workflow process in order to access this view. For example, you can set up a workflow that includes the User Interact step. You can handle the error by defining an Error Exception branch or error process.

  1. After you create the workflow process, activate the process and reload personalization. To reload personalization, navigate to Site Map > Runtime Events Administration > Events, and then select Reload Personalization from the applet menu. You must reload personalization after activating a workflow process that registers any runtime events in order for the process to take effect.

 Siebel Business Process Designer Administration Guide for Financial Services 
 Published: 22 May 2003