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.
Available from Approval Workflow Package 1.3.0.
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:
-
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.
-
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 Types |
Yes |
|
Price List |
|
Price Setting Types (Price List) |
No |
|
Live Price Grid Item |
|
Price Setting Types (Live Price Grid) of the parent Live Price Grid |
No |
|
Rebate Agreement |
|
Rebate Agreement Types |
Yes |
|
Rebate Record |
|
Rebate Agreement Types ¹ |
Yes (record Workflow Logic) |
|
Rebate Record Group |
|
Rebate Agreement Types ¹ |
Yes (record Workflow Logic) |
|
Compensation Plan |
|
Compensation Plan Types and Rebate Agreement Types ² |
Yes |
|
Compensation Record |
|
Compensation Plan Types and Rebate Agreement Types ² |
Yes (record Workflow Logic) |
|
Calculation Grid Item |
|
None. Only the entity-level workflow applies. |
Not applicable |
|
Claim |
|
Claims Types |
No |
|
Agreement & Promotion |
|
Agreement & Promotion Types |
Yes |
|
Custom Form |
|
Custom Form Types |
Yes |
|
Data Change Request |
|
Data Change Request Types |
No |
|
Model Object |
|
Model Classes ³ |
Yes (required) |
|
Model Record |
|
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 |
|
|
|
Documents with no type (Default) |
|
|
|
The whole entity (fallback for every type) |
|
|
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 |
|---|---|---|---|---|---|---|
|
|
|
Sales Manager approval |
Premium quote |
|
|
1 |
|
|
|
Finance approval |
Discount above 10% |
|
|
1 |
|
|
|
Sales approval |
Standard quote |
|
|
1 |
Approvers at Each Step
|
Workflow Type |
Step ID |
Approver ID |
Approver Type |
Approver Name |
|---|---|---|---|---|
|
|
|
|
USER GROUP |
SalesManagers |
|
|
|
|
USER GROUP |
Finance |
|
|
|
|
USER GROUP |
Sales |
Approval Conditions at Each Step
|
Workflow Type |
Step ID |
Condition ID |
Condition Description |
Condition |
|---|---|---|---|---|
|
|
|
|
Discount above 10% |
|
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 |
Steps S1 and S2 of |
|
Quote Type |
Step S1 of |
|
Quote with no type, with nothing configured for |
Step S1 of |
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 |
|---|---|---|---|---|
|
|
[Acc] Quote workflow |
Quote |
Quote |
Quote WF Logic |
|
|
[Acc] PL workflow |
Price List |
Price List |
Pricelist WF Logic |
|
|
[Acc] PGI workflow |
Live Price Grid Item |
Price Grid Item |
LPG WF Logic |
|
|
[Acc] Rebate Agreement workflow |
Rebate Agreement |
Rebate Agreement |
Rebate Agreement WF |
|
|
[Acc] Rebate Record workflow |
Rebate Record |
Rebate Record |
Rebate Records WF |
|
|
[Acc] Rebate Record Group workflow |
Rebate Record Group |
Rebate Record Group |
Rebate Record Group WF |
|
|
[Acc] Compensation Plan workflow |
Compensation Plan |
Compensation |
Compensation Plan WF |
|
|
[Acc] Compensation Record workflow |
Compensation Record |
Compensation Record |
Compensation Record WF |
|
|
[Acc] [SC] Sales Compensation Agreement |
Compensation Plan on Rebate Agreements |
Rebate Agreement |
Sales Compensation Agreement WF |
|
|
[Acc] [SC] Agreement Record |
Compensation Record on Rebate Records |
Rebate Record |
Sales Compensation Records WF |
|
|
[Acc] Calculation Grid Item workflow |
Calculation Grid Item |
Calculation Grid Item |
Calculation Grid Item WF |
|
|
[Acc] Claim workflow |
Claim |
Claim |
Claim WF |
|
|
[Acc] Agreement & Promotion workflow |
Agreement & Promotion |
Contract |
Agreement & Promotion WF |
|
|
[Acc] Custom Form workflow |
Custom Form |
Custom Form |
Custom Form WF |
|
|
[Acc] Data Change Request workflow |
Data Change Request |
Data Change Request |
Data Change Request WF |
|
|
[Acc] Model workflow |
Model Object |
Model |
Model WF |
|
|
[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.