I will explain how to set workflow in Wagby definition file. I will prepare a "Yearly Application" model as a sample.
We will prepare the "Yearly Application" model shown in Fig. 1 here.
|item name||Item ID||Type||Search||List|
|Application ID||appid||Numerical value|
|Applicant||applicant||Item reference of other models||○||○|
|Flow state||flowstatus||String (※ calculation formula)||○|
We refer to the logon account model (juser) provided by Wagby as standard.(Figure 2)
In addition, the initial value at the registration screen display is "logon ID".(Figure 3)
This will select the currently logged on account as the initial value of the list box.
To automatically set today's date when registering screen, use function TODAY.(Figure 4)
By using the function FLOWSTATUS, you can know the flow state (application, approval etc).(FIG. 5)
Detailed definition method of format is "Function> Workflow>FLOWSTATUS "Please read.
The type of the input item is a text area.(FIG. 6)
Apply workflow to this model.In the "Workflow" setting column prepared for "Other" in the "Screen" tab, give the "Enable workflow" check.(FIG. 7)
When the setting is completed, build it.
Launch the Web application you built.Log on as a system administrator and prepare three groups (General Affairs Department, Sales Department, Technical Development Department) shown in Figure 8.
We have three accounts (arakaki, miyagi, murata) belonging to the Technology Development Department group.(Figure 9) The principal adds "common process", "password change", "general user" plus "flow state viewing".
We will explain these as demo data on the following pages.