There are multiple options for allowing users to provide live values for submission in diagrams. Sometimes, however, diagrams will need to provide values that are difficult for operators to enter manually or precisely, such as times. For these, Prophecy provides a list of tokens that diagram designers can use to insert those values when an operator clicks a button.
There are currently 4 tokens available. Each must be entered exactly as shown here, including the {[ ]} brackets around the names:
-
{[CurrentDate]}: This provides the date of when the operator clicked the button on the diagram. For Mongoose buttons, the date is provided in the format CSI prefers: YYYY-MM-DD. For tag values, the format of MM/DD/YYYY is used.
-
{[CurrentTime]}: This provides the time of when the operator clicked the button on the diagram. For Mongoose buttons, the time is provided in the format CSI prefers: HH:MM:SS.fff. For tag values, the format of HH:MM:SS is used.
-
{[CurrentDateAndTime]}: This provides the date and time of when the operator clicked the button on the diagram. For Mongoose buttons, this is provided in the format CSI prefers: YYYY-MM-DD HH:MM:SS.fff. For tag values, the format of MM/DD/YYYY HH:MM:SS is used.
-
{[CurrentTimeInSeconds]}: This provides the number of seconds that had passed between midnight and when the button was clicked. This is used in some CSI time and attendance forms.
Tokens are supported on tag submit buttons and as input and filter values for Mongoose shapes.