Command Reference > pmcmd Command Reference > AbortTask
  

AbortTask

Aborts a task. Issue this command only if the Integration Service fails to stop the task when you issue the stoptask command.
The AbortTask command uses the following syntax in the command line mode:
pmcmd AbortTask

<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]>

<<-user|-u> username|<-uservar|-uv> userEnvVar>

<<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>

[<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>]

[<-folder|-f> folder]

<-workflow|-w> workflow

[<-runinsname|-rin> runInsName]

[-wfrunid workflowRunId]

[-wait|-nowait]

taskInstancePath
The AbortTask command uses the following syntax in the interactive mode:
AbortTask

[<-folder|-f> folder]

<-workflow|-w> workflow

[<-runinsname|-rin> runInsName]

[-wfrunid workflowRunId]

[-wait|-nowait]

taskInstancePath
The following table describes pmcmd AbortTask options and arguments:
Option
Argument
Description
-service
-sv
service
Required in command line mode. Integration Service name. Not used in interactive mode.
-domain
-d
domain
Optional in command line mode. Domain name. Not used in interactive mode.
-timeout
-t
timeout
Optional in command line mode. Amount of time, in seconds, pmcmd attempts to connect to the Integration Service. Not used in interactive mode.
If the -timeout option is omitted, pmcmd uses the timeout value specified in the environment variable INFA_CLIENT_RESILIENCE_TIMEOUT. If the environment variable is not set, pmcmd uses the default timeout value. Default is 180.
-user
-u
username
Required in command line mode if you do not specify the user name environment variable. User name. Not used in interactive mode.
-uservar
-uv
userEnvVar
Required in command line mode if you do not specify the user name. Specifies the user name environment variable. Not used in interactive mode.
-password
-p
password
Required in command line mode if you do not specify the password environment variable. Password. Not used in interactive mode.
-passwordvar
-pv
passwordEnvVar
Required in command line mode if you do not specify the password. Password environment variable. Not used in interactive mode.
-usersecuritydomain
-usd
usersecuritydomain
Optional in command line mode. Required if you use LDAP authentication. Name of the security domain that the user belongs to. Not used in interactive mode. Default is Native.
-usersecuritydomainvar
-usdv
userSecuritydomainEnvVar
Optional in command line mode. Security domain environment variable. Not used in interactive mode.
-folder
-f
folder
Required if the task name is not unique in the repository. Name of the folder containing the task.
-workflow
-w
workflow
Required. Name of the workflow.
-wait
-nowait
-
Optional. Configures the wait mode:
  • - wait. You can enter a new pmcmd command only after the Integration Service completes the previous command.
  • - nowait. You can enter a new pmcmd command after the Integration Service receives the previous command.
Default is nowait.
-runinsname
-rn
runInsName
Name of the workflow run instance that contains the task you want to abort. Use this option if you are running concurrent workflows.
-wfrunid
workflowRunId
Run identifier number (Run ID) of the workflow run instance that contains the task you want to abort. Use this option if you are running concurrent workflows.
-
taskInstancePath
Specifies a task name and where it appears within the workflow. If the task is within a workflow, enter the task name alone. If the task is within a worklet, enter WorkletName.TaskName. Enter the taskInstancePath as a fully qualified string.