Workflow Configuration per Entity Type (Approval Workflow)

The Approval Workflow Package lets you configure a separate approval workflow for each entity, such as Quote or Price List. Within an entity, you can configure a separate workflow for each entity type, such as one Quote Type. This page lists the supported entities, the Workflow Type values to use in the configuration tables, and the Workflow Logics the package provides.

Entities and Entity Types

  • An entity is the kind of document that goes through approval, such as a Quote or a Rebate Agreement.

  • An entity type is a sub-category of that document, taken from its type object. For example, each Quote Type in your partition is an entity type of the Quote entity.

  • The Default entity type (__DEFAULT__) covers documents of that entity that have no type.

How Package Selects Workflow

When a user submits a document for approval, the Workflow Logic reads the document's entity type and selects the workflow as follows:

  1. If the Approval Workflow Setup table has steps for the document's entity type, the package uses that workflow. A document with no type uses the workflow for the Default entity type.

  2. Otherwise, the package uses the workflow configured for the entity alone, without an entity type.

Workflows created before entity types existed keep working unchanged.

Supported Entities

Entity

Entity code

Entity types come from

Type object can name its own Workflow Logic

Quote

Quote

Quote Types

Yes

Price List

PriceList

Price Setting Types (Price List)

No

Live Price Grid Item

PriceGridItem

Price Setting Types (Live Price Grid) of the parent Live Price Grid

No

Rebate Agreement

Rebates

Rebate Agreement Types

Yes

Rebate Record

RebateRecord

Rebate Agreement Types ¹

Yes (record Workflow Logic)

Rebate Record Group

RebateRecordGroup

Rebate Agreement Types ¹

Yes (record Workflow Logic)

Compensation Plan

SCA

Compensation Plan Types and Rebate Agreement Types ²

Yes

Compensation Record

SCR

Compensation Plan Types and Rebate Agreement Types ²

Yes (record Workflow Logic)

Calculation Grid Item

CalculationGridItem

None. Only the entity-level workflow applies.

Not applicable

Claim

Claim

Claims Types

No

Agreement & Promotion

Contract

Agreement & Promotion Types

Yes

Custom Form

CustomForm

Custom Form Types

Yes

Data Change Request

DCR

Data Change Request Types

No

Model Object

MO

Model Classes ³

Yes (required)

Model Record

ModelRecord

Model Types of the parent model

No

The entity code is case-sensitive.

¹ A Rebate Agreement Type's record Workflow Logic applies either to single Rebate Records or to Rebate Record Groups, never both. Single Rebate Records are the default. The type's entity types appear under the entity it applies to.

² Sales Compensation runs on Compensation documents and on Rebate Agreement documents. Entity types come from both kinds of type.

³ A Model Class must name a Workflow Logic. If it does not, the system disables approval workflows for its Model Objects.

The package does not support Deal Plan.

Workflow Type Values

The approval configuration lives in four Company Parameter tables:

Company Parameter Table

What It Holds

Approval Workflow Setup

The approval steps.

Approvers at each step

Who approves each step.

Approval conditions at each step

When each step applies.

Additional Variable

Variables used in conditions. (optional)

In every table, the Workflow Type column identifies the entity and entity type a row belongs to. Build the value from the entity code and the unique name of the entity type, joined by a hyphen:

To Configure

Workflow Type Value

Example

One entity type

<entity code>-<type unique name>

Quote-Premium

Documents with no type (Default)

<entity code>-__DEFAULT__

Quote-__DEFAULT__

The whole entity (fallback for every type)

<entity code>

Quote

Use the unique name of the type, not its label.

The Additional Variable table combines both levels. The package reads the variables for the entity-type value and for the entity value. When both define a variable with the same name, the entity-type row wins.

For column details, see Configuration Tables (Approval Workflow).

Example: Separate Workflow for Premium Quotes

Your partition has a Quote Type with the unique name Premium. Premium quotes need a sales manager approval. They also need a finance approval when the discount is above 10%. All other quotes keep the general Quote workflow.

Approval Workflow Setup

Workflow Type

Step ID

Step Label

Reason

Skip

Step Type

Min Approvers

Quote-Premium

S1

Sales Manager approval

Premium quote



1

Quote-Premium

S2

Finance approval

Discount above 10%



1

Quote

S1

Sales approval

Standard quote



1

Approvers at Each Step

Workflow Type

Step ID

Approver ID

Approver Type

Approver Name

Quote-Premium

S1

A1

USER GROUP

SalesManagers

Quote-Premium

S2

A1

USER GROUP

Finance

Quote

S1

A1

USER GROUP

Sales

Approval Conditions at Each Step

Workflow Type

Step ID

Condition ID

Condition Description

Condition

Quote-Premium

S2

C1

Discount above 10%

discount > 0.1

In this example, discount is a calculation result on the quote. For the expression syntax, see Condition Expressions (Approval Workflow).

Result

Quote

Workflow Used

Quote Type Premium

Steps S1 and S2 of Quote-Premium. S2 applies only when the condition is met.

Quote Type Standard, with nothing configured for it

Step S1 of Quote.

Quote with no type, with nothing configured for Quote-__DEFAULT__

Step S1 of Quote.

Accelerator Workflow Logics

The package provides one Workflow Logic per supported entity. Each logic label starts with [Acc]. You select or skip each logic when you install the package.

Workflow Logic (unique name)

Label

Entity

Workflow Type

Installation Option

quote

[Acc] Quote workflow

Quote

Quote

Quote WF Logic

pricelist

[Acc] PL workflow

Price List

Price List

Pricelist WF Logic

pricegriditem

[Acc] PGI workflow

Live Price Grid Item

Price Grid Item

LPG WF Logic

rebateagreement

[Acc] Rebate Agreement workflow

Rebate Agreement

Rebate Agreement

Rebate Agreement WF

rebaterecord

[Acc] Rebate Record workflow

Rebate Record

Rebate Record

Rebate Records WF

rebaterecordgroup

[Acc] Rebate Record Group workflow

Rebate Record Group

Rebate Record Group

Rebate Record Group WF

compensation

[Acc] Compensation Plan workflow

Compensation Plan

Compensation

Compensation Plan WF

compensationrecord

[Acc] Compensation Record workflow

Compensation Record

Compensation Record

Compensation Record WF

SC_SalesCompensationAgreement

[Acc] [SC] Sales Compensation Agreement

Compensation Plan on Rebate Agreements

Rebate Agreement

Sales Compensation Agreement WF

SC_AgreementRecord

[Acc] [SC] Agreement Record

Compensation Record on Rebate Records

Rebate Record

Sales Compensation Records WF

calculationgriditem

[Acc] Calculation Grid Item workflow

Calculation Grid Item

Calculation Grid Item

Calculation Grid Item WF

claim

[Acc] Claim workflow

Claim

Claim

Claim WF

contract

[Acc] Agreement & Promotion workflow

Agreement & Promotion

Contract

Agreement & Promotion WF

customform

[Acc] Custom Form workflow

Custom Form

Custom Form

Custom Form WF

dcr

[Acc] Data Change Request workflow

Data Change Request

Data Change Request

Data Change Request WF

model

[Acc] Model workflow

Model Object

Model

Model WF

modelrecord

[Acc] Model Record workflow

Model Record

Model Record

Model Record WF

To use one of these logics for a specific entity type, enter its unique name in the Workflow Logic field of that type object. A type object that names no Workflow Logic uses the logic whose workflow type matches the entity.

SC_SalesCompensationAgreement and rebateagreement share the Rebate Agreement workflow type. SC_AgreementRecord and rebaterecord share the Rebate Record workflow type. If you install both logics of a pair, assign the logic you want to each Rebate Agreement Type explicitly.

Limitations

  • A type object must reference its Workflow Logic by unique name. The system does not recognize a reference by label.