Configuring an External Program to Run on UNIX

This topic describes how to configure an external program to run on UNIX. The predefined Run External Program Workflow Policy program does not support UNIX.

To configure an external program to run on UNIX

  1. Define a business service that runs an external program:

    1. Navigate to the Business Service Administration screen, then the Business Service Methods view.

    2. Add a new business service.

      For example, Run Program.

    3. Add a new method.

      For example, Run.

    4. Add a new method argument.

      For example, Program.

    5. Select the Proc: Service_PreInvokeMethod.

    6. Call Clib.system in the function.

      For example:

      var program = Inputs.GetProperty("...")
      if (program != "")
          Clib.system(program);
      return(CancelOperation);
      
    Note: For more information, review the use of the Clib.system method in the Siebel eScript Language Reference.
  2. Define a Workflow Process that calls the business service that you defined in Configuring an External Program to Run on UNIX:

    1. Add a start step, a business service step, and an end step.

    2. Connect the steps.

    3. For the business service step, define Run Program and Run.

    4. For the input argument for Program, define the external program you must run.

      For example, you can define letter.txt that exists in the following directory:

      /bin/mail hkim@pcs.com /home/users/hkim/letter.txt
  3. Invoke your Workflow Process as a Workflow Action.