Page History
...
Example | Explanation |
---|---|
isStarted | Specifies that the workflow or job started today. |
isCompleted | Specifies that the workflow or job completed today independently from its start date. |
isCompletedSuccessful | Specifies that the workflow or job completed successfully today independently from its start date. |
isCompletedFailed | Specifies that the workflow or job failed today independently from its start date. |
isCompleted( startedFrom=0d ) | Specifies that the workflow or job started today and completed today. It is not considered if the workflow or job completed successfully or failed. |
isCompletedSuccessful( startedFrom=0d ) | Specifies that the workflow or job started today completed successfully today. |
isCompletedFailed( startedFrom=0d ) | Specifies that the workflow or job started today and failed today. |
isStarted( startedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job started after the given point in time. |
isCompletedSuccesful( startedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job started after the given point in time and completed successfully. |
isCompletedFailed( startedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job started after the given point in time and failed. |
isCompleted( completedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job completed after the given point in time. |
isCompletedSuccessful( completedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job completed successfully after the given point in time. |
isCompletedFailed( completedFrom=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job failed after the given point in time. |
isCompleted( completedFrom=2021-12-05T01:00:00.000Z, completedTo=2022-05-05T01:00:00+02:00 ) | Specifies that the workflow or job completed before the given point in time. |
isCompletedSuccesful( completedFrom=2021-12-03T01:00:00+02:00, completedTo=2021-12-05T01:00:00+02:00 ) | Specifies that the workflow or job completed successfully before the given point in time. |
isCompletedFailed( completedFrom=2021-12-04T01:00:00+02:00, completedTo=2022-12-05T01:00:00+02:00 ) | Specifies that the workflow or job failed before the given point in time. |
lastCompletedSuccessful | Specifies that the last run of the workflow or job completed successfully. |
lastCompletedFailed | Specifies that the last run of the workflow or job failed. |
lastCompletedSuccessful( startedFrom=-11d, startedTo=-1d ) | Specifies that the last run of the workflow or job started in the given period and completed successfully today. |
lastCompletedFailed( startedFrom=-11d, startedTo=-1d ) | Specifies that the last run of the workflow or job started in the given period and failed today. |
lastCompletedSuccessful( completedFrom=-11d, completedTo=-1d ) | Specifies that the last run of the workflow or job completed successfully in the given period. |
lastCompletedFailed( completedFrom=-11d, completedTo=-1d ) | Specifies that the last run of the job failed in the given period. |
...
Return Variable | Data Type | Purpose | Example |
---|---|---|---|
js7CheckHistoryResult | Boolean | Returns the Boolean result of the query. | true, false |
| String | Returns the Controller ID of the resulting history entry. The value of the return variable is empty if the query returns no result. If the query returns a result then the return variable holds the Controller ID of the youngest resulting history entry. | controller |
js7CheckHistoryResultWorkflow | String | Returns the workflow name of the resulting history entry. The value of the return variable is empty if the query returns no result. | check_history |
js7CheckHistoryResultJob | String | Returns the job name of the resulting history entry. The value of the return variable is empty if the query returns no result. | check-history-job |
js7CheckHistoryResultStarted | Date | Returns the start date and time of the resulting history entry. The value of the return variable is empty if the query returns no result. If the query returns a result then the return variable holds the start date and time of the youngest resulting history entry in ISO-8601 format. | 2012-12-05T01:00:00+02:00 |
js7CheckHistoryResultCompleted | Date | Returns the completion date and time of the resulting history entry. The value of the return variable is empty if the query returns no result. If the query returns a result then the return variable contains the completion date and time of the youngest resulting history entry in ISO-8601 format. | 2012-12-05T01:00:00+02:00 |
js7CheckHistoryQuery | String | Returns the value of the Returns a copy of the value of the | isStarted |
| String | Returns the value of the Returns a copy of the value of the | controller |
js7CheckHistoryQueryWorkflow | String | Returns the value of the Returns a copy of the value of the | accounting |
js7CheckHistoryQueryJob | String | Returns the value of the Returns a copy of the value of the | my-job |
...
Code Block | ||||
---|---|---|---|---|
| ||||
js7 { auth { ... } configuration { ... } job { ... } web { ... } api-server { # API Server URL url = [ "https://joc-2-0-primary:4443" ] # Option 1: use of a Credential Store cs-file=${js7.config-directory}"/private/secret.kdbx" cs-key=${js7.config-directory}"/private/secret.key" cs-password="secret" # Option 1: use of references to credentials account="cs://myAccounts/joc@username" password="cs://myAccounts/joc@password" # Option 2: Use of account and password # account="root" # password="root" } } |
...