Work Flow

User guide · Everyone + Administrator

Work Flow

Many OBS modules have a process: a record moves through statuses such as Draft, Pending approval and Approved. This page shows how to move a record, how approvals work, and how an administrator sets up the steps.

StatusesApprovalsProcess automation

What is a work flow

A work flow (process) is the list of statuses a record goes through. Each status is a step. For example, an overtime request goes: Draft → Pending approval → Approved or Rejected, and it can be Canceled.

①
Steps
The statuses of the module, in order. You see them as a bar on top of every record.
②
Rules
Which step can follow which, who may move the record, and whether the record is locked.
③
Actions
What OBS does when the record reaches a step: send an e-mail, ask for approval, run a check.

The status bar

Open a record of a module with a process. The bar under the buttons shows all steps of the process:

An overtime request in the step Pending approval. Draft is done, Canceled can be chosen, Approved and Rejected cannot be chosen by hand.
What you seeMeaning
A larger, highlighted circleThe current status of the record.
A circle with a tickA step the record has already passed.
A circle with an arrowA step you can choose now: click it to move the record there.
A crossed-out circleA step you cannot choose by hand. OBS sets it itself, for example after an approval.
Tip
Point the mouse at a step to see its description, if the administrator has written one.

Change the status

  1. 1Open the record and save your changes first.
  2. 2Click the step you want in the status bar.
  3. 3A window Change status asks you to confirm: Move the record to …. Click Confirm, or Cancel to stay.
  4. 4OBS runs the checks and actions of the step (for example, sends an e-mail) and shows a message. The bar shows the new status.
The confirmation before the record moves to the step Canceled.
Important
If a check of the step fails, you see a message and the status does not change. Read the message: it usually tells you which field to fill in or what to do first.

Steps that lock the record

Some steps are set to Disable modifications. While the record is in such a step, nobody can save changes to it, not even an administrator: OBS answers Access denied. You can still move the record to another allowed step.

Steps that must follow in order

A step marked as Sequential step can be reached only from the step right before it. If you try to jump to it from another step, OBS refuses with a message about the configured sequence.

Approvals

When a step asks for an approval (for example, the step Pending approval of a time off or overtime request):

  1. 1You move your request to the step that asks for approval.
  2. 2OBS sends an e-mail to the approver: usually your manager, as set in the organizational structure. The e-mail has a link to the request.
  3. 3The approver approves or rejects (see below).
  4. 4OBS moves the record to Approved or Rejected and sends you an e-mail with the decision.
Good to know
The approval steps Approved and Rejected are not clicked by hand: OBS sets them after the decision. Some modules also ask for an electronic signature after the approval: see Digital Signature.

Approve or reject

As an approver, you find the requests that wait for you in two places:

  • click your initials at the top right: the menu shows Approval Requests: N;
  • on the home screen, the section Approval requests with the number of open requests.
Approval Requests: who asks, their manager and department, the module, and the button Approve or reject.
  1. 1Click Approve or reject on the row.
  2. 2The page shows the module and the number of the document on top, and below it the Original request with all its fields.
  3. 3Write a comment in Resolution if needed (for example, why you reject).
  4. 4Click Approve or Reject.
Approve or reject a request: Resolution, the two buttons, and the original request below.
Tip
Going on holiday? Use Manage delegates on the Approval Requests page to let a colleague approve for you (see Delegations).

For administrators

The rest of this page is for the person who sets up the processes. A process has three parts: the steps, the function of each step, and extra rows in Process automation (checks, more actions, access).

The steps of a process

Every module with a process has its own list of steps, for example Overtime request statuses. Open it by name in Quick access (Find a module). Each row is one step; open a row to change it.

A step of the process (Overtime request statuses, step canceled): its rules, its function and parameters.

Fields of a step

FieldWhat it does
NameThe key of the step, for example pending_approval. The bar shows its translation (Pending approval).
StepThe place of the step in the bar (1, 2, 3 …).
DescriptionShown when you point at the step and in the Change status window.
ColorThe colour of the circle in the bar, for example #FFCCCC.
Manual status changeOn: users can click the step. Off: only OBS moves the record there (after an approval, a scheduled task, a function).
Sequential stepThe step can be reached only from the step right before it.
Previous stepsThe steps from which a record may come to this step: a list of numbers with commas, for example 1,2,4.
Disable modificationsWhile the record is in this step, nobody can save changes to it.
Function, ParametersWhat OBS does when the record reaches the step (see below and Process Functions).
Precondition table, action, fieldAn advanced option, rarely used. Leave empty unless OBS support tells you otherwise.

A function on a step

Each step can have one Function with its Parameters. Parameters are separated with |. Common examples:

FunctionParameters (example)What happens
SendEmailovertime_requests_cancelled|first_level_management_chain|staff_idSends the e-mail template to the manager and to the employee of the record.
RequestApprovalWithSystemEmailfirst_level_managementAsks the first-level manager for approval (see Approvals).
RawSQLWithUserreturn_successRuns an SQL function; if it raises an error, the status does not change.
CheckIfFieldIsNotEmptycontact_id|emailRefuses the step while these fields are empty.

All functions with their parameters: Process Functions.

E-mail on a step

Use the function SendEmail. The parameters are the name of the e-mail template, then the recipients:

template_name|recipient_1|recipient_2|…

RecipientWho gets the e-mail
a column of the recordThe person in that field, for example staff_id (an employee) or a contact field.
a column with an e-mail addressThe address written in that field.
an e-mail addressThat address, for example [email protected].
first_level_management_chainThe manager one level above the employee.
management_chainThe managers two levels above the employee.
staff_jsonThe employees listed in the JSON field staff_json of the record.
__PRIV__GroupNameEverybody in that privilege group, for example __PRIV__HR.
Important
Write the template name first. The old form SendEmail|template|… is wrong: the function name is chosen in the Function field, not in the parameters.
Tip
OBS reads the recipients from the record as it was before the status change. If a field is filled in only during the same change, the e-mail finds no recipient: fill the field and save the record first.

Process automation

One step can need more than one action, for example a check and then an e-mail. Add them in the module Process automation (open it in Quick access). One row = one function for one step of one module.

A row of Process automation: the module, the step, the function and its parameters. The tab Privileges and the button Add all privileges are on top and on the left.
FieldWhat to enter
ModuleThe module of the process, for example overtime_requests.
StepThe number (ID) of the step row in the list of steps.
Step nameThe name of the step, for example pending_approval. If filled in, it wins over Step, and the row keeps working in another OBS system where the IDs differ.
Function, ParametersAs on the step itself (Process Functions).
AuthorizedOptional: the name of a JSON field of the record with the employees who may move the record to this step.

When a user moves a record, OBS runs the Process automation rows of the target step first, then the function of the step itself, and only then saves the new status. If any of them returns an error, the status does not change and the user sees the message.

Who can move a record

On the tab Privileges of a Process automation row, list the privilege groups that may move records to this step. Add all privileges on the left adds every group in one click; then remove the ones that should not. Privilege groups are explained in Security.

Other ways a status changes

  • An approval decision moves the record to Approved or Rejected.
  • A scheduled task with the function IssueProcessStep moves records in bulk at a set time, for example expired requests (Scheduled Task).
  • Another system can change the status through the API (API).
  • The rule Process step execution on API call runs a step when a record is created through the API.
Important
Changing the status directly in the database does not run the functions of the step: no e-mail, no checks.

FAQ

I cannot click a step.
The step is not a manual step, it is sequential and the record is not in the step before it, or your group is not allowed to move records there. Ask your administrator.
Save says "Access denied" on a record I could edit before.
The record is in a step with Disable modifications. Move it to another step first, if the process allows it.
The status changed but nobody got an e-mail.
Check the template name and the recipient fields of the SendEmail parameters, and that the recipient field was filled in before the status change.
Where do I see who changed the status and when?
Open the record and use Activity.

Related: Process Functions · Digital Signature · Security · Working with a Record.

An overtime request in the step Pending approval. Draft is done, Canceled can be chosen, Approved and Rejected cannot be chosen by hand.
The confirmation before the record moves to the step Canceled.
Approval Requests: who asks, their manager and department, the module, and the button Approve or reject.
Approve or reject a request: Resolution, the two buttons, and the original request below.
A step of the process (Overtime request statuses, step canceled): its rules, its function and parameters.
A row of Process automation: the module, the step, the function and its parameters. The tab Privileges and the button Add all privileges are on top and on the left.