Only a small tutorial, but made this up this afternoon for someone who wants to give his staff access to open work periods, not close them… and not allow them into the Menu Item area.
Flow:
Manager or Supervisor logs in when a workperiod is closed > Question asked if work period should be opened
If NO is pressed then:
If YES is pressed then:
First off, lets make an Automation Command
Name: WPL_Start Work Period
Button Header: Start Work Period
Then we need to create 2 Actions:
Name: WPL_Start Work Period
Action Type: Start Work Period
Action Name: Ask Question Generic
Action Type: Ask Question
Parameters:
Question: [:Question]
Buttons: [:Buttons]
Automation Command Name: [:Automation Command Name]
Backgroud Color: [:Background Color]
Then we need to create 4 rules:
Rule Name: WPL_User Login
Event Name: User Login
Execute Rule If: Matches All
Add Custom Constraint:
Role Name
EQUALS YOURROLE (Add as many role constraints as needed)
ACTION
Ask Question Generic
Constraint: [('{SETTING:ISCURRENTWORKPERIODOPEN}')] == 'FALSE'
Question: Work Period is CLOSED\rWould you like to open one now?
Buttons: Yes,No
Automation Command Name: WPL_Start
Background Color: Red
Rule Name: WPL_Start Work Period
Event Name: Automation Command Executed
Custom Constraints:
Execute Rule If: MATCHES
Automation Command Name
EQUALS WPL_Start Work Period
ACTION
WPL_Start Work Period
Rule Name: WPL_Yes Click
Event Name: Automation Command Exectued
Custom Constraints:
Execute Rule If: MATCHES
Automation Command Name
EQUALS WPL_Start
Command Value
EQUALS Yes
ACTIONS
WPL_Start Work Period
MSG TEST
:
Message: Work Period Has\rBeen Started
Rule Name: WPL_No Click
Event Name: Automation Command Exectued
Custom Constraints:
Execute Rule If: MATCHES
Automation Command Name
EQUALS WPL_Start
Command Value
EQUALS No
ACTIONS
MSG TEST
:
Message: Work Period Has Not \rBeen Started
Hope it finds you well, to be fair its my first tutorial which isn’t something broken and un-needy
Matt