Adding steps that store property values in a PostgreSQL database
You can add steps to your workflows to capture job and document property values and
store them in the PostgreSQL database.
- Click the Workflow tab.
- Click the name of the workflow you want to modify.
- Optional: Disable the workflow by clicking the switch to the left of the workflow name. If you do not disable the workflow while you edit it, jobs that use this workflow continue to move through steps. When you save, the workflow is momentarily disabled then enabled again. Jobs that are processing in the workflow could move into error.
- Add the WritePropsToReportsDatabase step to the workflow.
- Right-click the step and select Properties.
- Click the Reports tab.
- In the Job properties to write and Document properties to write fields, select the property values that you want to store in the PostgreSQL database.
- Note:
- Some property values are blank until after a certain point in a workflow. For example, a job does not have a value for Assigned to printer (Job.Print.AssignPrintTime) until the job is sent to the printer in the PrintJobs step. If you store Assigned to printer to the PostgreSQL database before the PrintJobs step runs, the property is present in the database table, but the value is blank.
- To include a label in the database for the information that the step stores, enter a value for Event type.
- Fill in values for the other properties as needed.You must use different table names for the Document properties table and Job properties table properties. The values you use must also be different from the Database table names specified in the data collectors.
- Click OK.
- Optional: If you want to collect data at other points in the workflow, add another WritePropsToReportsDatabase step and update its properties.
- Save and enable the workflow.