Skip to content

M9-S1 — Publish a service with an approval workflow

Section titled “M9-S1 — Publish a service with an approval workflow”
ModuleM9 — Offer it as a service
After this session you canPublish a service that colleagues request from the catalog, approved by each requester’s own manager, and prove it as each person.
TimeFacilitated: 75 min · On your own: about 69 min
Before you startM7-S1 (reference fields). In your space: Support Manager recorded as the manager of Representative One and Desk Agent, the group Support Staff, and the service category Customer Support (M0-S1). From ACP: M5-S1, where you submitted and approved a request.
Go deeperPublish a service with an approval workflow · Choose who acts at a step · Services and requests

◆ Orientation (1 min) — From a view to the catalog

Section titled “◆ Orientation (1 min) — From a view to the catalog”

Sometimes a representative decides a customer needs a replacement device. Today they email the desk and wait for their manager to agree. In ACP you submitted a leave request from the Services Catalog; now you publish a service there: Device Replacement, requested by support staff, approved by the requester’s own manager, and dispatched by the desk.

▤ Concept (5 min) — What makes an entity a service

Section titled “▤ Concept (5 min) — What makes an entity a service”

A service is an entity whose records are requests. You design it like any entity (fields, workflow), but you create it from Administration › Services › Services Catalog, and instead of building a view you give it a place in the catalog:

Setting (service Details tab)What it decides
Categorywhere the card sits in the catalog; categories come from a list your administrator keeps
Audience › Authenticatedoffered to people who are signed in; pick Select Users or Select groups to narrow it, or leave both empty for everyone
Audience › Anonymousoffered to people who are not signed in; cannot be combined with picked users or groups
Watcherspeople or groups who follow every request without acting on it

A service is offered only once it is active. Save and Activate is available only when the service has a workflow, a Category and an Audience; Deactivate takes it out of the catalog without deleting it.

You built in Modules 1 to 8A service adds
Records added from a viewRequests started from a catalog card (Apply)
Views decide who can open the listthe Audience decides who may request; the Inbox and Outbox show each person their part
Publish a viewSave and Activate the service

Manager approval must go to the requester’s own manager, who is different for each requester. Set the owner to the person who submitted (User, Previous Step Owner, the initial step) and turn on Relative: Relation Manager, Relation Grade 1 (grade 2 is the manager’s manager). The platform looks the manager up in the organization structure, which your administrator maintains. A requester with no manager recorded falls to Fallback Assignment 1.

“Not yet” and “no” for a requester

Section titled ““Not yet” and “no” for a requester”

Here, unlike the ticket workflow, the approver’s “no” really ends the request, and “not yet” goes back to the requester. The Return and Reject checkboxes do exactly that (M2-S2). Rename Return to Return for changes and set its Action comment status to Required, so the manager says what to fix; the note reaches the requester through Workflow comments.

flowchart LR
  A["Initial Step<br/>(the requester)"] -->|Submit| B["Manager approval<br/>(the requester's manager)"]
  B -->|Approve| C["Dispatch<br/>(Technical Support Office)"]
  B -->|Return for changes| A
  B -->|Reject| E["Complete Step"]
  C -->|Dispatched| E

What to notice: the approver is computed per request from the organization structure; the desk claims the dispatch with Take Ownership, as at Help Desk.

⛏ Lab (53 min) — Build, activate and test Device Replacement

Section titled “⛏ Lab (53 min) — Build, activate and test Device Replacement”

Goal. Publish Device Replacement for Support Staff, and take one request through it as the requester, the manager and the desk.

Before you start. Signed in as yourself.

Create the service and its form

  1. Open Administration › Services › Services Catalog and select Add Service. The Add New Data Entity dialog opens.
  2. Name Device Replacement (Arabic استبدال جهاز), an icon, Choose Module Customer Support System, Single Name Device replacement request, Plural Name Device replacement requests. Select Create; the designer opens.
  3. On Structure, add Device (Category: Laptop, Phone, Router, Other; Required), Related ticket (Reference to Support Tickets, one record), Reason (Long-text, Required) and Shipment reference (Text). Select Save.

The workflow

  1. On Workflows, select Add A Workflow. Select the Initial Step’s action and rename it Submit.

  2. Create Step after the initial step: Name Manager approval, Step Type Normal, Main Action Next Step, tick Return and Reject.

  3. Step Owner: User, User Type Previous Step Owner, Step Name Initial Step; turn on Relative, Relation Manager, Relation Grade 1.

  4. Fallback Assignment 1: User, Fixed, Support Manager. Select Done.

  5. Rename the step’s main action Approve. Open Return, rename it Return for changes, and set Action comment status to Required.

  6. Create Step after Manager approval: Name Dispatch, Main Action Next Step, Return and Reject unticked. Step Owner: Group, Fixed, Technical Support Office, Single User, Take Ownership. Fallback Assignment 1: User, Fixed, Support Manager. Select Done, and rename its main action Dispatched.

  7. Set the field rules:

    FieldInitial StepManager approvalDispatch
    Device, Related ticket, ReasonMandatory (Related ticket: Editable)LockedLocked
    Shipment referenceHiddenHiddenMandatory
  8. Select Save.

Screenshot pending The Create New Step dialog for Manager approval: owner Previous Step Owner of the Initial Step, Relative on, Relation Manager, Relation Grade 1, and a fixed fallback What to notice: the owner is not a person you pick. It is worked out from whoever submitted, one level up the organization structure.

Catalog, audience and activation

  1. Open the Details tab. Set Category Customer Support.
  2. Under Audience, turn on Authenticated and choose Support Staff in Select groups. Leave Watchers empty. Select Save.
  3. On the service’s Views tab, edit the request view the platform created and turn on Workflow path and Workflow comments, as in M4-S1. Save.
  4. From the designer’s actions menu, select Save and Activate, and confirm.

Test it

  1. As Representative One, open Services › Services Catalog. Point at the Device Replacement card and select Apply.
  2. In New Request, choose Router, pick the ticket Printer not found in Related ticket, type the Reason Customer’s router is faulty, and save. Select Submit and confirm.
  3. As Support Manager, open Services › Inbox, open the request, and select Return for changes with the comment Say which model.
  4. As Representative One, open Services › Outbox: the request is back with you. Open it, read the manager’s note in Discussion, edit the Reason to Customer’s Router X2 is faulty, and select Submit again.
  5. As Support Manager, approve it from the Inbox.
  6. As Desk Agent, open it from the Inbox, select Take Ownership, fill in Shipment reference SHP-1042, and select Dispatched.
  7. As Representative One, check the Outbox: the request is under Completed.

Check.

  • Device Replacement is active in the catalog under Customer Support.
  • Customer One does not see it in the catalog; Representative One does.
  • The request went to Support Manager because the administrator recorded him as Representative One’s manager.
  • Return for changes required a comment, and the requester read it on the request.
  • Shipment reference was hidden until Dispatch, and required there.
  • The requester’s Outbox shows the request as completed.

Pass condition. A request submitted by Representative One was returned, resubmitted, approved by his manager and dispatched by the desk, and ended in his Outbox as completed.

If something goes wrong

What you seeWhat to do
Save and Activate is greyed outThe service needs a workflow, a Category and an Audience with Authenticated or Anonymous on. Fix any validation error first.
The Category list is emptyNo service category exists; ask your administrator.
Representative One does not see the serviceIt is not active, or he is not in Support Staff.
The request went straight to Support Manager through the fallbackSame person here, so check the request’s route: if the step shows the fallback, the requester has no manager recorded. Ask your administrator.
Return for changes has no comment boxSet its Action comment status to Required and save.
The requester cannot read the manager’s noteWorkflow comments is off in the service’s request view (step 14).
No Device Replacement card under ApplyThe card shows Apply when you point at it; the form it opens is titled New Request.
Model answer

The service, piece by piece:

  • Form: Device, Related ticket (a reference reusing M7’s skill), Reason, and Shipment reference, hidden until the desk dispatches.
  • Workflow: Manager approval owned by the submitter’s manager (Previous Step Owner of the initial step, Relative, Manager, grade 1), with Return (renamed, comment required) and Reject; Dispatch owned by Technical Support Office with Take Ownership; fixed fallbacks on both.
  • Catalog: Category Customer Support, Audience Support Staff, Save and Activate. The request view shows the route and the notes.
  • The administrator’s part (managers, the group, the category) was used, not built.

✳ Discussion (10 min) — Service or view?

Section titled “✳ Discussion (10 min) — Service or view?”

You now know two ways to let people add records: a view with Creating new entries, and a service in the catalog. Which would you choose for: (a) customers opening support tickets; (b) staff asking for a replacement device; (c) the desk logging a phone call, no approval; (d) citizens booking a public appointment without an account?

With a facilitator: groups of three, 5 minutes to decide the four cases with one reason each; then 5 minutes comparing answers and noting where groups disagree and why.

On your own: write your choice and one reason for each case, then compare with the model answer.

Model answer
  • (a) Customer tickets: either works; the tutorial uses a view. A view fits when the people who create records also work with lists of them (my tickets). A service would put tickets in customers’ Inbox and Outbox, which also works.
  • (b) Device replacement: a service. Staff ask for something from another team; the catalog is where they look, and the Outbox follows it.
  • (c) Logging calls: a view. Nobody requests anything; the desk records work it does.
  • (d) Public appointments: a service with an anonymous audience, with Human Verification considered, because the people asking have no account.

✓ Practice (5 min) — Check your understanding

Section titled “✓ Practice (5 min) — Check your understanding”
PracticeChoose one answer.

Save and Activate stays greyed out. The service has a workflow and a category. What is missing?

  1. Explanation for A

    ✗ Incorrect

    Not this one: requests start from the catalog; the platform creates the request view. See A service is an entity people request.

  2. Explanation for B

    ✓ Correct

    Correct: activation needs a workflow, a category and an audience. See A service is an entity people request.

  3. Explanation for C

    ✗ Incorrect

    Not this one: watchers are optional; they follow requests without acting. See A service is an entity people request.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

A request from Desk Agent reaches Support Manager at Manager approval; one from a new employee goes to the fallback instead. What is the most likely reason?

  1. Explanation for A

    ✓ Correct

    Correct: the Relative owner is looked up there, and when nothing is found the fallback takes the step. See The requester’s manager.

  2. Explanation for B

    ✗ Incorrect

    Not this one: someone outside the audience could not have submitted the request at all. See A service is an entity people request.

  3. Explanation for C

    ✗ Incorrect

    Not this one: grade 1 means the requester’s direct manager, for everyone. See The requester’s manager.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

After Return for changes, where does the requester find the request?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the requester always finds their requests in the Outbox, returned or not. See ACP M5-S1.

  2. Explanation for B

    ✓ Correct

    Correct: Return sends the request to the first step, the requester’s; the note shows when Workflow comments is on. See Not yet and no.

  3. Explanation for C

    ✗ Incorrect

    Not this one: Return keeps the same request, sent back to the first step to be corrected. See Not yet and no.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeDecide whether the statement is true or false.

A service can be offered both to anonymous visitors and only to the group Support Staff.

  1. Explanation for A

    ✗ Incorrect

    Anonymous cannot be combined with picked users or groups; choose one audience. See A service is an entity people request.

  2. Explanation for B

    ✓ Correct

    Correct: an anonymous audience cannot also be limited to chosen people or groups. See A service is an entity people request.

Check your answer

The correct answer is B (False). Open the explanation under each option to see why.

You published a service: a request form, an approval by each requester’s own manager with “not yet” and “no”, a desk that claims the work, a place in the catalog for the right group, and the route and notes visible to the requester. After Module 9 you can offer any approval process as a service in the catalog.

Next. Module 10 is the capstone: you extend the system once more without step-by-step help, prove all of it as each person on the web and on the phone, and export it as a package.