All product information in wiki.bizagi.com is only valid for Bizagi BPM Suite 9.1.X.
For newer Bizagi BPM Suite versions (10.X and up) please visit the User Guide.
 

Sequences

From Business Process Management, BPM and Workflow Automation Wiki | BizAgi BPMS

Jump to: navigation, search

<keywords content="keywords"> case, number, creation, case reference, case number </keywords>

Contents

Customize case identifiers

This article explains how to customize Case identifiers, which are the numbers given by Bizagi for every instance of a process. If no customization is made Bizagi assigns a case identifier automatically to each case instance. Case identifiers can be customized combining Sequences and Case numbers. You can use one, or both according to what you need.

Sequences

Sequences are used to accompany the case number that identifies a case.  Within the advanced option on the Standard Menu of Bizagi Studio, there is a menu to configure sequences.  



When you click on it, the following window will appear:


Image:Functionality3_Image002.jpg
 


Id: Bizagi internal consecutive number. It is created automatically when Apply is clicked

Name: Corresponds to the name that describes the sequence.  It must not contain special characters such as spaces, accent marks, or symbols.

Seed: Corresponds to the initial value of the number to increment.  Must be a numeric value

Increment: This takes care of incrementing the seed.  It must be a numeric value


This window must specify a descriptive name for the sequence together with the value of the initial seed and its increment value.  This sequence is what must be associated with the case number.  The prior window shows that the name of the sequence corresponds to the “consumer loan” application, which is initialized at 1 and its increment is 1.

When added, the use of a sequence is immediately enabled in the configuration combo of the case number. 


 

To configure the Case Numbers open the Case Identifier option in the Standard Menu, and then configure as shown:




Sequences can be used not only to generate the case number, but also to save a consecutive number in an attribute associated to th case.

Modify sequences

The sequences fields can be modified and the following aspects must be considered:

  • If the sequence has not been used the user can modify the fields Name, Initial Value and Increment.
  • If the sequence has already been used the user can only modify the fields Name and Increment.

The sequences are created with Id 10002 (NoMail used) and 10004 (NoMailer Not Used) in the following figure:


In order to make modifications the user must position the cursor in the respective field and edit the values; click on the Apply button to implement the changes.


In the previous figure can be observed that the following modifications were completed:

  • Sequence Id 10002: Name Change and Increment (the initial value could not be modified because the sequence was already used).
  • Sequence Id 10004: Name Change, Initial Value and Increment.


Note:The process information can be affected when the sequence is modified because the sequences already used change their behavior.


In this case, the rule will return the Id sequence value 10004 instead of Id 10002 because the sequence was called by name. Hence, calling the sequence by Id instead of Name is highly recommended because the process can be affected for any error generated after modifying the sequence values.


Delete sequences

In order to delete sequences, select the sequence to be deleted, click on the Delete button and finally click on the apply button to confirm the changes.


Note:The process information can be affected when the sequence is deleted because the sequence can be in use.


Case Number

In Bizagi each case number identifies an instance of a process. If no customization is made, Bizagi gives a number automatically.


This functionality has the goal of customizing the case number of an application or all Bizagi applications, using Bizagi Studio.


How to create a case number

1.     In the Advanced option in the Standard menu of Bizagi, select the Case number option.


2.     Define the Configuration level for the case number – for one application or for all applications.


3.     In General Configuration, select the option for implementing the sequence number (Default or By Sequence,).


4.     Configure the assignment of the case number at either Case Creation or End of Creation Phase


Image:Functionality3_Image003.jpg


Configuration Level: There are two configuration levels, for one application or for all applications:

Image:Bulletazul.gif Application: When the configuration level by application is selected, the case number is customized independently for the cases that belong to an application.  Therefore, the Personalized Case number (Prefix, Suffix and Sequence) will apply and will have the same structure for all the processes and subprocesses in the application.

IMPORTANT : Once you customize the Case Number for ONE Application, all other case numbers should be handled INDIVIDUALLY for each application. That is, if changes are made later for 'All Applications' Configuration Level, they will have no effect on previously customized applications.


 

Image:Bulletazul.gif Bizagi (common to all applications). When the configuration level is selected common to all Bizagi, it applies to all applications, as long as the case number has not been configured independently.  In other words, it applies only to those applications that do not have a case number configuration.  When this level is selected in the combo box, the application combo is disabled.

 

General Configuration:This group configures the way the case number is going to be generated.

There are three alternatives for the configuration:

 

Image:Bulletazul.gif Default: The case number is created equal to the case number (idcase). This is the way Bizagi usually generates the case number and it is configured by default for all applications.

Image:Bulletazul.gif By Sequence: When this option is selected, the case number will use one of the sequences created in said module. (See sequences)

 

There are two possibilities upon assigning the case number:

 

Image:Bulletazul.gif Case Creation: This is the default value for Bizagi. Each time a case is created it is immediately assigned a case number.

Image:Bulletazul.gif End of creation Phase: As the name indicates this number is assigned when the phase for the registration of a process ends.  This option has the advantage that the cases registered do not appear as pending until they are completely registered.  This is useful when the registration phase consists in more than one activity, and all of them must be done at the same moment in time for the case to have any meaning.



5.     If configuration was defined by sequence or by rule, this activates the option for ‘Number Configuration,’ where the following items can be completed:


Image:Bulletrojo.gif For configuration by sequence the prefix, sequence, and suffix to be used must be defined.  The prefix and the suffix do not vary and the value of the sequence is what makes the case number identify the case.



Example: If you enter prefix P, sequence X, and suffix S, the case numbers will come out as follows: o PXS o PX+1S o PX+2S o PX+nS This option is very useful for projects in which the cases have an identifier according to the product.  For example, in a normal application you could enter the prefix CRE for credit, HR for human resources, etc.


Image:Functionality3_Image006.jpg


Number configuration:

Image:Bulletazul.gif Prefix: Indicates the first part of the case number.

Image:Bulletazul.gif Sequence: A sequence is selected.  It should be created ahead of time.

Image:Bulletazul.gif Suffix: Indicates the final part of the case number


<comments />