Based on the locality type of a request (i.e., a national or an international trip), the booking administrator will have up to one day before departure ( Leaving Date) to book the hotel and flight. Suppose you have a Travel Request process where the Administrative Department of your company locates and registers the travel bookings on your behalf. Set Task duration - defining duration with a fixed date Me.Duration = CHelper.resolveVocabulary("InternationalBookingDurati") If it is NOT national set the duration using the international vocabulary Me.Duration = CHelper.resolveVocabulary("NationalBookingDuration") If it is national set the duration using the National vocabulary Identify if the destination is national The next image shows the code of the expression: This is done by using the Task Duration function available in the Function list of the Date & Time category. Set the duration to the element in the vocabulary. Determine if the request is national or international. These can be modified at any time by end users in the Work Portal, to respond to changing business needs.ģ. We will use two previously defined constant vocabularies. In order to use vocabularies, they have to be created prior to the creation of the referencing expression. We recommend to use vocabularies to store constant duration for Tasks, to allow for easy modification in the Work Portal if the business condition should change. Create the expression to set the duration. In the fourth step of the Bizagi Process Wizard (Business Rules), select Activity Actions.Ĭlick the Task in which the duration will be calculated and create an On Enter Expression.Ģ. National and international destinations are stored in a Parameter Entity, and are distinguished by a Code: "1" for national and "2" for international.ġ. Since the duration of the task is not static we need an expression to set it. You can request a national or an international trip, and based on this locality, the booking administrator will have two or three days respectively to book the hotel and flight. Set Task duration - defining duration in time Set Timer duration considering the Working time schema and timezone of a user.Set duration of Timers attached to activities.Set Task duration - defining duration in time.If the duration is not set On Enter, then Bizagi will use the static duration defined in the Process Model. Durations MUST be set On Enter of Activities to be taken into consideration.Dynamic duration has to be defined in minutes or it must return a fixed date.Tasks duration is used to calculate performance indicators and the status of pending activities in the Work Portal.ĭuration can be static, defined in the Process Model or it can be dynamic, evaluated by an expression when the Task is created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |