Process Management Services

Overview

Contains smart services to allow processes to manage other processes, manage node activity, upgrade process version and update locales.

Example use cases:

  • Orchestrate process removal and archival within your application (e.g. synchronize the deletion/archival of subprocesses and related processes)
  • Bulk delete testing processes that are no longer needed
  • Cancel a process (or many) from another process without using messaging or MNI
  • Set the status of a process to Cancelled for reporting purposes
  • Orchestrate node activity
  • Override or make additions to the security role-map of a list of process instances.

Key Features & Functionality

Smart Services included:

  • Find Archive Processes
  • Delete Processes
  • Cancel Processes
  • Pause Processes
  • Resume Processes
  • Archive Processes
  • Unarchive Processes
  • Find Archived Processes
  • Start All Nodes
  • Restart All Nodes
  • Cancel All Nodes
  • Update Security For Processes
  • Upgrade Processes
  • Upgrade Processes From Version
  • Change Model Locale

All the Smart Services must run in a context with Administrator rights and return a result code indicating whether or not the operation was successful.

Anonymous
Parents
  • I have received an error using the Find Archived Processes Smart Service, my process model is using this based on a date loop to determine the archived processes from a particular start date. This seems to be working for most iterations however on certain dates it returns the following error.

    Is this a known issue? I'm using Appian 19.3 and Process Management Services v2.2.3 

    2019-09-20 11:18:49,508 [Appian Work Item - 238 - execution00 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=52384, classname=com.appiancorp.ps.processmanager.pinstance.archive.FindArchivedProcesses
    java.lang.NumberFormatException: For input string: "268468406.l"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    at com.appiancorp.ps.processmanager.pinstance.archive.FindArchivedProcesses.run(FindArchivedProcesses.java:82)

Comment
  • I have received an error using the Find Archived Processes Smart Service, my process model is using this based on a date loop to determine the archived processes from a particular start date. This seems to be working for most iterations however on certain dates it returns the following error.

    Is this a known issue? I'm using Appian 19.3 and Process Management Services v2.2.3 

    2019-09-20 11:18:49,508 [Appian Work Item - 238 - execution00 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=52384, classname=com.appiancorp.ps.processmanager.pinstance.archive.FindArchivedProcesses
    java.lang.NumberFormatException: For input string: "268468406.l"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    at com.appiancorp.ps.processmanager.pinstance.archive.FindArchivedProcesses.run(FindArchivedProcesses.java:82)

Children