public class ProcessStartConfig
extends java.lang.Object
Constructor and Description |
---|
ProcessStartConfig()
Instantiate a
ProcessStartConfig using default values for all
configurations. |
ProcessStartConfig(ProcessVariable[] processParameters)
Instantiate a
ProcessStartConfig with the given process parameters. |
ProcessStartConfig(ProcessVariable[] processParameters,
java.lang.String processModelVersion,
java.lang.Long priorityId)
Instantiate a
ProcessStartConfig with the given process parameters,
process model version and priority id. |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getPriorityId()
Get the priority id to use when starting the process.
|
java.lang.String |
getProcessModelVersion()
Get the process model version to use when starting the process.
|
ProcessVariable[] |
getProcessParameters()
Get the process parameters that will be used when starting the process.
|
void |
setPriorityId(java.lang.Long priorityId)
Set the priority id to use when starting the process.
|
void |
setProcessModelVersion(java.lang.String processModelVersion)
Set the process model version to use when starting the process.
|
void |
setProcessParameters(ProcessVariable[] processParameters)
Set the process parameters to use when starting the process.
|
public ProcessStartConfig()
ProcessStartConfig
using default values for all
configurations.public ProcessStartConfig(ProcessVariable[] processParameters)
ProcessStartConfig
with the given process parameters.
Default values will be used for all other configurations.processParameters
- The process parameters to use when starting the process. The following
fields must be populated for each ProcessVariable
object:
name
, value
, instanceType
.public ProcessStartConfig(ProcessVariable[] processParameters, java.lang.String processModelVersion, java.lang.Long priorityId)
ProcessStartConfig
with the given process parameters,
process model version and priority id.processParameters
- The process parameters to use when starting the process. The following
fields must be populated for each ProcessVariable
object:
name
, value
, instanceType
.processModelVersion
- The process model version to use when starting the process (use
AbstractProcessModel.LATEST_PUBLISHED_VERSION
to start the latest published
version of the model)priorityId
- The priority id to use when starting the process (null means use the
default).public java.lang.Long getPriorityId()
public void setPriorityId(java.lang.Long priorityId)
priorityId
- the priority id (null means use the default)public java.lang.String getProcessModelVersion()
public void setProcessModelVersion(java.lang.String processModelVersion)
processModelVersion
- the process model version (use AbstractProcessModel.LATEST_PUBLISHED_VERSION
to start the latest published version of the model)public ProcessVariable[] getProcessParameters()
public void setProcessParameters(ProcessVariable[] processParameters)
User
object. Instead, assign that process variable a String
containing the username. Likewise, assign a process variable of type Group should be
assigned a Long
, etc. The exception to this rule is the People type.
Process variables of type People should be assigned a LocalObject
. Only
the values are used for passed parameters, not expressions; expressions must be set
on the process model at design time.processParameters
- The following fields must be populated for each ProcessVariable
object: name
, value
, instanceType
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.