Service Tasks

Service tasks represent actions by a service or program in a business process. One example of a service task is sending an email notification to users involved in the process.

Why use a service task?

Use a service task to send an email notification, save a form to the repository, start a workflow, or run a rule within a process. If a user must take action as part of the task, use a user task instead.

Email Service Tasks

Email service tasks automatically send an email to one or more users at a specified point in the business process. These service tasks are useful if a user does not have to take action in a process but should still be kept informed of its progress.

Email service tasks are represented by the following symbol:

To send an email during a process

  1. Open the process designer of the business process.
  2. Place an Email Service Task onto the canvas and connect it to the objects that precede and follow it in the process.
  3. Double-click the task to open its Properties dialog box.
  4. In the Name field, enter a descriptive name for the task.
  5. Under Description, describe the role that the task plays in the process.
  6. Fill in the Send to field. Use the Show Reply to/CC/BCC link to also fill in CC and BCC recipients. Click the Insert Variable button Variable button (right arrow) to insert a placeholder for process or field information.
  7. For the From field, select from the available display names, or click Manage display names to create a new one. See Email Display Names for more information.
  8. Fill in the Subject, and Body fields. Click the Insert Variable button Variable button (right arrow) to insert a placeholder for process or field information such as the name of the person who started the process, the submitter, any user task actions or comments, and field values.
    • The Previous submitter variable refers to the last user or service that submitted a form.
    • The Previous user submitter variable refers to the last user who submitted a form. This ignores any more recent service tasks that submitted a form.
    • You can use rich-text to compose the email body.
  9. Optional: Click the checkbox for Include action history to attach a PDF of the last 10 completed steps of action history in the email. Use the action history section title field to name the action history section, including the option of using the token button (right arrow) to include process variables in the name. Under Action history location, choose between the following options:
    • Before the form: The action history will be placed at the beginning of the form as a single document.
    • After the form: The action history will be placed at the end of the form as a single document.
    • As separate document: The action history will be included as a separate file from the form.

Workflow Service Tasks

Workflow service tasks start a workflow at a specific time in a business process. In the Workflow Service Task properties window, select the name of the workflow that should begin and the variables you want to send as inputs when the process reaches the service task. This service task lets you retrieve values from the completed workflow and assign those values to process variables.

For an example that uses this feature across process automation, see the Migrating Laserfiche Form Tables into Microsoft Word Documents whitepaper.

Workflow service tasks are represented by the following symbol:

To start a workflow during a process

  1. Open the process diagram of the business process from which you want to start a workflow.
  2. Place a Workflow Service Task onto the canvas and connect it to the objects that precede and follow it in the process.
  3. Double-click the task to configure its properties.
  4. In the Name field, enter a descriptive name for the task.
  5. Under Description, describe the role that the task plays in the process.
  6. In the Workflow name field, type or select the name of the workflow you want to start. If the workflow does not exist in the list, use the Manage workflows link to locate or create the workflow, and configure it for use with external processes. Once selected, you can use the Open selected workflow link to view the workflow and review how it will function.
  7. Select Wait for the invoked workflow to finish running before continuing to run the current process to pause this service task while the workflow runs, and resume when complete.

    Note: If not selected, output values can not be retrieved from the workflow, as the process will continue without waiting for the values.

  8. Configure input and output values. Workflow parameters must be configured in the workflow prior to using them in a business process.
    1. Configure the Input values with the business process variables or other data that the process will send to the workflow.
    2. If you chose to have the process wait for the workflow to finish, configure which business process variables will be populated with the information returned from the workflow through the output parameters.

Field Mapping Guide

Supported data types for workflow interactions:

Example: When a sales representative submits an initial inquiry form, a workflow runs that calculates a time estimate for the project, creates custom client documents in the repository, and creates a WebLink URL to the client documents. After the workflow finishes, it passes the URL back to business processes. Business processes then sends a new form to the sales representative with a link to the information packet.

Rules Service Task

#Rules-Service-TaskThe Rules service task is an extremely powerful feature that allows you to use rules to manipulate variables within a process.

Rules service tasks are represented by the following symbol:

To run a rule during a process

  1. Open the process diagram of the process from which you want to run a rule.
  2. Place a Rules Service Task onto the canvas and connect it to the objects that precede and follow it in the process.
  3. Double-click the task to configure its properties.
  4. In the Name field, enter a descriptive name for the task.
  5. Under Description, describe the role that the task plays in the process.
  6. Select the type of rule you wish to run.
  7. Select the rule to run.
    1. If the rule desired is not in the list, click the Manage rules link to open the Rules page to create or troubleshoot your rule.
    2. To view details or edit your rule, click the Open selected rule link.
    3. Once the rule has been published, click the refresh button to update the rule list or input/output value availability.
  8. If the rule has input parameters, click the Add input values link to select the parameters to make available to the process.
    1. Select the necessary parameters, and click Update to add them to the process.
    2. Configure which values will be passed to the rule. Use the variable picker to select from available variables within the process.
  9. If the rule has output parameters, click the Add output values link to select the parameters to make available to the process.
    1. Select the necessary parameters, and click Update to add them to the process.
    2. Configure which variables will be populated by the rule. Use the variable picker to select from available variables within the process.

Save to Repository Service Tasks

The Save to Repository service task save a copy of a particular form and its attachments to the Laserfiche repository. While the task attempts to preserve all data and maintain the basic layout of the form, there are limitations that are related to printing any web page. Please test the process, review the output, and verify that the output is sufficient for your business requirements.

Note: The Save To Repository task runs as a service process and does not have access to the user's cookies, browser storage, or any custom JavaScript on the form. This may create difficulties in rendering external sites embedded in iframes on a form.

You can configure the following options for Save to Repository service tasks:

Save to Repository service tasks are represented by the following symbol:

To save a form to a repository during a process

  1. Open the process designer of the business process.
  2. Place a Save to Repository Service Task onto the canvas and connect it to the objects that precede and follow it in the process.
  3. Double-click the task to configure its properties.
  4. In the Name field, enter a descriptive name for the task.
  5. Under Description, describe the role that the task plays in the process.
  6. Select Allow process to continue before service task completes if you want the process to start the Save to Repository task, then continue on to the next steps without waiting for the task to complete. If this option is cleared, a failed Save to Repository task will suspend the entire process, meaning that later steps in the process will not be taken.
  7. Select Generate Laserfiche pages when importing PDFs to generate Laserfiche TIFF image pages when a PDF is imported.
  8. In the Repository profile drop-down list, select a repository profile.
  9. Under the Save settings section, select the form you want to save to the repository.
    • If you select Save the submitted form from this process step, choose the form that was submitted at the step specified. If the step was an earlier step, the document saved to the repository will reflect the previous values submitted on the form.
    • If you select Save a form with current process data, the saved form will use the current values for each field.
    • Select Do not include any attachments to save forms in the repository without any attachments.

      Note: If you want a document with specific formatting, you can create a copy of the original form, remove any fields that are not required, adjust the formatting, and use it with this setting to print the current process data.

  10. After selecting between the two options in the previous step, select the form you want to save from the drop-down menu. If you selected Save the submitted form from this process step, you will also have to select the step/user task.

Once you select a form from the drop-down list, options for configuring the form and any of its attachments will appear.

  1. In the Document name field, enter a name for the form submission document in the repository. Click the Insert Variables button Variable button (right arrow) to insert a value from form or process variables into the name.
  2. In the Save location area:
    1. Under Folder ID, specify a folder in the repository to save into regardless of its path. This can be done by entering a valid folder ID, selecting from the variable picker, or using the folder picker.

      Note: Use this option if you always want to save documents to the same folder. Using the folder ID to select the folder will keep your process running smoothly even if that folder is moved or renamed in the repository.

    2. Under Additional Path, specify an absolute path to where you would like the submissions to be saved. If Folder ID is blank, this path will be determined from the repository root. If Folder ID is set, this path will be below the specified folder.

      Note: Use this option if you want the folder to be dynamic based on values in the form submission. For example, this would be the right choice if you wanted to save submissions based on date

    For example, to place any form submissions in a date-based structure, you might select a folder from the folder ID called "new clients", then use variables to create sub-folders based on the date and information from the form itself.

  3. (Optional) Under Locations, manually specify latitude and longitude or use the token picker to add variables to save geolocation information for submitted forms or file upload variables. Multipoint coordinates can be used with the following format: Latitude; Longitude; Latitude; Longitude.
  4. Under Save Options, select to save the document as a PDF or TIFF.
    1. Alternatively, select No Form to save a document that has metadata but no actual image or electronic document components. If you clear this option, the folder path you specified above will be created. (You can apply metadata to this folder with the Configure fields and Parent folder fields options below.) You may want to clear this option if you're only using a form to gather the metadata that you will apply to a folder where the form's attachments will be saved.
  5. Optional: Select Include action history to include the action history from preceding user tasks on the form. Use the action history section title field to name the action history section, including the option of using the token button (right arrow) to include process variables in the name. Under Action history location, choose between the following options:
    • Before the form: The action history will be placed at the beginning of the form as a single document.
    • After the form: The action history will be placed at the end of the form as a single document.
    • As separate document: The action history will be saved as a separate file from the form. Use the Action history filename field to create a custom file name for action history document.
  6. Select Save business process data as XML if you would like to save an XML copy of the business process with the document.
  7. Under Fields, click Configure fields to select a template or field to apply to the document.
    1. In the Configure fields dialog box, choose a template from the drop-down menu or click Add/remove fields to choose the fields you want applied to the form.
    2. You can specify a value for each template field and any added fields. Click the Insert Variables button Variable button (right arrow)to populate any field with form or process variables.
    3. Note: For radio button or drop-down fields on your form, you must have assigned values to the field's choices if you want to save those field's values as metadata in a repository. In addition, the field you want to populate in the entry's metadata must be a list field, and the values available in the list field must be identical to the values available in your form's drop-down field.

    4. Click Done when you have finished configuring the fields.
  8. Under Parent folder template, click Configure fields to select a template and fields to apply to the folder the form submission document is saved in.
    1. In the Configure fields dialog box, choose a template from the drop-down menu or click Add/remove fields to choose the fields you want applied to the form.
    2. You can specify a value for each template field and any added fields. Click the Insert Variables button Variable button (right arrow)to populate any field with form or process variables.
    3. Note: For radio button or drop-down fields on your form, you must have assigned values to the field's choices if you want to save those field's values as metadata in a repository. In addition, the field you want to populate in the entry's metadata must be a list field, and the values available in the list field must be identical to the values available in your form's drop-down field.

    4. Click Done when you have finished configuring the fields.
  9. If your form has file uploads, a tab will appear for each upload. Configure these tabs as follows:
    1. In the Document name field, enter a name for the file upload document in the repository. Click the Insert variable Variable button (right arrow) button to insert the value from form or process variables into the name.
    2. Next to Path, select whether the file upload document should be saved in the Parent form location or an Other location. If you select Other location, click the Path ... button to browse to a path.
    3. In the Document relationships field, choose the relationship you want to apply between the uploaded file and the submitted form. Learn more about document relationships.
    4. Under Fields, click Configure fields to select a template and fields to apply to the uploaded file. In the Configure fields dialog box, choose a template from the drop-down menu and/or click Add/remove fields to choose the fields you want applied to the uploaded file. You can specify a value for each template field and any added fields. Click the Insert Variable button Variable button (right arrow)to populate the field with form or process variables.

Note: When saving data from a process to a metadata field in a repository entry, the format of the data must match the metadata field's format. Attempting to save mismatching formats (e.g. saving text data to a number field) will cause a "Bad field value" error.

Save to Repository Considerations

Unless the Allow process to continue before service task completes is selected, your process will become suspended at a Save to Repository task under the following conditions:

The first two issues most commonly occur either when the built in ProcessAutomation user has not been granted access to the desired repository locations, or when fields are populated with incompatible data types or are to long for the destination fields.

Note: When the Save to Repository task does fail, any documents or files created before the point of failure will be left behind. If you retry the step in the process without checking, duplicate documents can be created. For example, if saving a form with attachments fails after the PDF is generated and saved, but while attempting to upload the attachments, the PDF document will not be deleted.

Outflow Tab

All tasks have an Outflow tab which lets you specify which pathway the process should take after the task has completed.