connection
Applies when
type in (switch)type in (draftSwitch)| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
name | string | Yes | data type=string; maxLen=255Name of this workflow switch activity branch. |
execution
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
sequence | number | Yes | data type=number; maxLen=22Applies when type in (CHECK_WF_VARIABLE)type in (CASE)type in (IF_ELSE) |
execution {
sequence: 42
}serverSideCondition
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | No | data type=string; lov=STATICValid values: rowsReturned noRowsReturned expression functionBody variable=value variable!=value variableIsNull variableIsNotNull variableIsZero variableIsNotZero variableIsNullOrZero variableIsNotNullAndNotZero variableContainsNoSpaces variableIsNumeric variableIsNotNumeric variableIsAlphanumeric variableIsInColonDelimitedList variableIsNotInColonDelimitedList textIsContainedInVariable text=value text!=value textIsContainedInValue textIsNotContainedInValue neverApplies when type = IF_ELSE | |
sqlQuery | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type in (rowsReturned)type = IF_ELSE and type in (noRowsReturned) | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: sql plsql javaScript-mleApplies when type = IF_ELSE and type = expression |
sqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type = expression and language = sql | |
plsqlExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type = expression and language = plsql | |
javaScriptExpression | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type = expression and language = javaScript-mle | |
language | enum | Yes | plsql | data type=string; lov=STATICValid values: plsql javaScript-mleApplies when type = IF_ELSE and type = functionBody |
plsqlFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type = functionBody and language = plsql | |
javaScriptFunctionBody | multiline string | Yes | data type=multiline string; maxLen=4000Applies when type = IF_ELSE and type = functionBody and language = javaScript-mle | |
item | string | Yes | data type=string; maxLen=4000; textCase=UPPERApplies when type = IF_ELSE and type in (variable=value)type = IF_ELSE and type in (variable!=value)type = IF_ELSE and type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type = IF_ELSE and type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2)type = IF_ELSE and type in (variableIsNull)type = IF_ELSE and type in (variableIsNotNull)type = IF_ELSE and type in (variableIsZero)type = IF_ELSE and type in (variableIsNotZero)type = IF_ELSE and type in (variableIsNullOrZero)type = IF_ELSE and type in (variableIsNotNullAndNotZero)type = IF_ELSE and type in (variableContainsNoSpaces)type = IF_ELSE and type in (variableIsNumeric)type = IF_ELSE and type in (variableIsNotNumeric)type = IF_ELSE and type in (variableIsAlphanumeric)type = IF_ELSE and type in (variableIsInColonDelimitedList)type = IF_ELSE and type in (variableIsNotInColonDelimitedList) | |
text | string | Yes | data type=string; maxLen=4000Applies when type = IF_ELSE and type in (textIsContainedInVariable)type = IF_ELSE and type in (textIsContainedInValue)type = IF_ELSE and type in (textIsNotContainedInValue)type = IF_ELSE and type in (text=value)type = IF_ELSE and type in (text!=value) | |
value | string | Yes | data type=string; maxLen=4000Applies when type = IF_ELSE and type in (variable=value)type = IF_ELSE and type in (variable!=value)type = IF_ELSE and type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type = IF_ELSE and type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2) | |
list | array of strings | Yes | data type=string; maxLen=4000Applies when type = IF_ELSE and type in (variableIsInColonDelimitedList)type = IF_ELSE and type in (variableIsNotInColonDelimitedList) | |
item | string | Yes | data type=string; maxLen=4000; textCase=UPPERApplies when type = IF_ELSE and type = textIsContainedInVariable | |
value | string | Yes | data type=string; maxLen=4000Applies when type = IF_ELSE and type in (textIsContainedInValue)type = IF_ELSE and type in (textIsNotContainedInValue)type = IF_ELSE and type in (text=value)type = IF_ELSE and type in (text!=value) |
serverSideCondition {
type: rowsReturned
sqlQuery: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
item: value
text: value
value: value
list: [
value
value
]
}condition
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
when | enum | Yes | data type=string; lov=STATICValid values: true false nullApplies when type = TRUE_FALSE_CHECK | |
operator | enum | Yes | data type=string; lov=STATICValid values: = != > < >= <= isNotNull isNull otherwiseApplies when type in (CHECK_WF_VARIABLE)type in (CASE) | |
value | string | Yes | data type=string; maxLen=32767Applies when type in (CHECK_WF_VARIABLE)type in (CHECK_WF_VARIABLE) and type in (CASE)type in (CASE) and type in (CHECK_WF_VARIABLE)type in (CASE) |
condition {
when: true
operator: "="
value: value
}activity
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
to | reference | Yes | data type=reference; lov=COMPONENT; references=activity |
activity {
to: @component
}config
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
buildOption | reference | No | data type=reference; lov=COMPONENT; references=buildOptionApplies when type = IF_ELSE |
config {
buildOption: @component
}advanced
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
diagram | string | No | data type=string; maxLen=32767 |
advanced {
diagram: value
}comments
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
comments | multiline string | No | data type=multiline string; maxLen=4000 |
comments {
comments: ```
value
```
}APEXlang Example
connection sample (
name: value
execution {
sequence: 42
}
serverSideCondition {
type: rowsReturned
sqlQuery: ```sql
value
```
language: sql
sqlExpression: ```sql
value
```
plsqlExpression: ```plsql
value
```
javaScriptExpression: ```javascript-mle
value
```
plsqlFunctionBody: ```plsql
value
```
javaScriptFunctionBody: ```javascript-mle
value
```
item: value
text: value
value: value
list: [
value
value
]
}
condition {
when: true
operator: "="
value: value
}
activity {
to: @component
}
config {
buildOption: @component
}
advanced {
diagram: value
}
comments {
comments: ```
value
```
}
)