Properties of the OnProcessError context

Property Description
LastErrorMessage Last error message
ModusProcess

Properties:

Objectname: Name of the process

SystemOId: ID of the system where the process runs

Functions:

  • Cancel() Cancels the process.
    ModusProcess.Cancel()
  • GetComponent() Enables access to the properties and methods of components. DocumentCollection = ModusProcess GetComponent ("DocumentCollectionManager")
  • SendInfoMessage() Sends an information message to logged-on remote control clients. A time stamp is inserted before each message.

    ModusProcess.SendInfoMessage("This is the message")
    

  • Stop() Ends running processes.
    ModusProcess.Stop()
    
ResetError Resets an error state in an OnError script.

TRUE = Prevents cancelling a process in the event of an error.

FALSE = Allows cancelling a process in the event of an error. If the activities are run on a timer, the current process is rerun at the next scheduled interval. Otherwise, the process is terminated.

ResumeOptions Possible values:
  • ProcessResumeOptions.NextActivity: The process is resumed with the next activity.
  • ProcessResumeOptions.FromStart: The process is started from the beginning.
  • ProcessResumeOptions.FromStartWithIntervall: The process is started from the beginning at the next scheduled interval.
    • Variable pools cannot be reset.
    • Setting ResumeOptions only applies when the process is run on a timer.