APIs, SDKs, and Services > Administration API > Sample Business Process
  

Sample Business Process

Included in the SDK is a sample orchestration project that demonstrates the use Administration API (a system service) by getting a list of running processes and then terminating them. You can work with this project by navigating to the orchestration folder and importing and existing project in to your workspace.
The process will receive a getProcessList() request and return a list of processes based on the filter criteria present in the request message. The process suspends so that you can review the contents of the getProcessListOutput process variable. Using the Process Console, you can then edit the variable and delete any items in the list that you don't want to terminate. After saving the variable, you can resume the process, which then iterates over the list of processes returned and terminates them. Here is an figure showing this process
Terminate Running Processes