• Rough draft
  • Scheduling a Task

    Assigning tasks to the user when the time comes is very easy with scheduled tasks. This section shows how to develop code in scheduled tasks in designer and how to work scheduled tasks.

    STEPS

    Create a New Process

    • Select "all folders" from the menu that includes folders.

    • After entering all folders, "New Folders" appears at the top of the folders.

    • After you type the folder name and select the folder type, the folder appears. 

    • Then, type a process name and press the + button. That provides an open process.

    • The opening screen has a version name and a book icon. Below those, presses the “edit” button.

    Create Task

    • Create a task with the following actions;

    • The first task that appears when the page is opened is green because it is the start task.

    • After clicking Edit on the versions page, the first task is ready on the page that opens.

    • Clicking adds new and Task twice enables editing for naming.

    • After pressing the task, a menu changes on the right.

    • Select "module" from the type under Caption in the menu.

    • After selecting the module, the (Empty) text and the icon above change because the type of Task has changed.

     

    • The first click on "Add New" in the grey box on the side selects that box.

    • When clicked for the second time, the Add New text becomes editable.

    • Gives a name no the button.

    • This grey box, named, turns into a button in the form.

    • When you click on Completed, the "add new task" button appears on the side.

    • When you press Add New Task, a new task appears in orange.

    • There is no need to add a button to the orange task for this process.

    Scripting a Schedule for a Task

    • The calendar icon under the expense form task is for assigning a schedule.

    • When clicks the calendar icon, three sections titled "Interval", "Schedule Rules", and "Schedule Script" appear.

    • Filling the fields starts at the interval section.

    • If the interval section is empty, the schedule does not run.

    • Click the "Enable" box to execute the specified program.

    • In order for the notification to come once a week, the day is set to 1, and the month, hour, and minute are set to 0.

    <Schedule Name="Weekly Leave Request Report"> <Rule Type="Weekly"> <DayOfWeek>Sunday</DayOfWeek> <DayOfWeek>Tuesday</DayOfWeek> <DayOfWeek>Wednesday</DayOfWeek> <DayOfWeek>Thursday</DayOfWeek> <DayOfWeek>Friday</DayOfWeek> <DayOfWeek>Saturday</DayOfWeek> </Rule> <Rule Type="Daily"> <Start>09:15:00</Start> <End>18:00:59</End> <Invert>True</Invert> </Rule> </Schedule>
    • The Schedule Script section may remain empty.

    • Then return to the task from the pool tab.

    • The previously entered schedule icon becomes darker.

    • The icon on the left of the tasks is called "prework."

    • Enters in the prework of the Leave Request Weekly Report task.

    • We need to write the following code to the prework in order for the notification reaction to occur;

    $WorkItem.SelectedAction = 'Completed';
    • After typing this code, the prework icon turns white.

    • Then, the scripting part is done.

    Give Role to Task

    • A “+” sign is under the "Roles" heading under the created task.

    • The name and caption fields are filled.

    • After pressing OK, two sections appear as role type and decision table on the page that appears.

     

    • Click the "+" under identity on the Decision table.

    • In the new and empty line that opens

    • In the newly opened line, click on "type to search" under identity.

    • The person to be notified is selected.

    • The selection is saved automatically.

    • Then return to the pool from the tabs above

    • When one clicks on the orange task, the side menu changes.

    • Click on the role title and select the created role.

    Creating Form

    • Click the "+" under the Forms heading.

    • Enter Name and Caption

    • A blank page opens.

    • When press the empty spot on the page, the menu appears.

    • Press "+Add New".

    • Layout Controls is selected in the drop-down menu.

    • Row Content is selected.

    • Choose "Create new section here" from the options and enter the section name.

    • Section Name must be written without any spaces.

    • Then, press ok.

    • Row Content's section name appears in the form without spaces, but it can be edited by pressing it twice.

    • Then, clicks the column under the row content.

    • The same menu appears under Column.

    • Click +Add New

    • Select Message from the Widgets.

    • Press (Empty) and enter the value.

    • The form part is done.

    Send Notification

    • When the notification time comes, enter the worklist from the main emakin menu.

    • Enter the inbox tab.

    • Press “Notification Person” and enter.

    • The notification written in the form appears on this page.

     

    Copyright © 2010 - 2023 Emakin. All rights reserved.