String
ServiceNow Connector 6.16 Reference - Mule 4
Anypoint Connector for ServiceNow (ServiceNow Connector) provides connections between Mule runtime engine (Mule) and ServiceNow apps.
Configuration
Default Configuration for ServiceNow Connector.
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Name |
Name for this configuration. Connectors reference the configuration with this name. |
x |
||
Connection |
Connection types for this configuration. |
x |
||
Name |
String |
ID used to reference this configuration. |
x |
|
Expiration Policy |
Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. |
Basic Authentication Connection Type
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Service Address |
String |
Address of the ServiceNow service. |
x |
|
ServiceNow Version |
Enumeration, one of:
|
ServiceNow API Version. |
|
|
User Tables List |
Array of String |
List of user-defined tables. |
||
Encoding |
String |
Character encoding. |
|
|
User Name |
String |
Username. |
x |
|
Password |
String |
Password. |
x |
|
Transport Configuration |
Transport configuration. |
|||
Sign Security Strategy |
WSS configuration for the signature security strategy. |
|||
Username Token Security Strategy |
WSS configuration for the username token security strategy. |
|||
Reconnection |
Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
|||
Pooling Profile |
Characteristics of the connection pool. |
OAuth 2.0 Authorization Code Connection Type
Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to Configuring OAuth 2.0 for Connectors or Configuring OAuth 2.0 for Connectors on CloudHub.
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Service Address |
String |
Address of ServiceNow service. |
x |
|
ServiceNow Version |
Enumeration, one of:
|
ServiceNow API Version. |
|
|
User Tables List |
Array of String |
List of user-defined tables. |
||
Encoding |
String |
Character encoding. |
|
|
Custom Transport Configuration |
Custom transport configuration. |
|||
State |
String |
String value that you send when the OAuth dance is initiated and that is returned back by the service provider with the token callback. |
||
Sign Security Strategy |
WSS configuration for the signature security strategy. |
|||
Username Token Security Strategy |
Username token WSS configuration. |
|||
Reconnection |
Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
|||
Consumer Key |
String |
OAuth consumer key, as registered with the service provider. |
x |
|
Consumer Secret |
String |
OAuth consumer secret, as registered with the service provider. |
x |
|
Authorization Url |
String |
URL of the service provider’s authorization endpoint. |
|
|
Access Token Url |
String |
URL of the service provider’s access token endpoint. |
|
|
Scopes |
String |
OAuth scopes to request during the OAuth dance. This value defaults to the scopes in the annotation. |
||
Resource Owner Id |
String |
Resource owner ID to use with the authorization code grant type. |
||
Before |
String |
Name of the flow to execute immediately before starting the OAuth dance. |
||
After |
String |
Name of the flow to execute immediately after receiving an access token. |
||
Listener Config |
String |
Configuration for the HTTP listener that listens for requests on the access token callback endpoint. |
x |
|
Callback Path |
String |
Path of the access token callback endpoint. |
x |
|
Authorize Path |
String |
Path of the local HTTP endpoint that triggers the OAuth dance. |
x |
|
External Callback Url |
String |
URL that the OAuth provider uses to access the callback endpoint if the endpoint is behind a proxy or accessed through an indirect URL. |
||
Object Store |
String |
Configures the object store that stores data for each resource owner. If not configured, Mule uses the default object store. |
Sources
To view custom or extended parent tables in ServiceNow Connector, select the Allow access to this table via web services and Allow configuration options in the table definition. |
New / Updated Record
<servicenow:new-or-updated-record-listener>
Efficiently polls periodically for changes in the selected table and accepts only new records into the flow.
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
Name of the configuration to use. |
x |
|
ServiceNow Time Zone |
String |
Timezone. |
|
|
Table name |
String |
Name of the table from which to retrieve the records. |
x |
|
Query |
String |
Optional query that filters the result set. The syntax is |
||
Display System References |
String |
Data retrieval operation for reference and choice fields. Retrieves the display value or the actual value from the database. Valid values are:
|
|
|
Exclude Reference Links |
Boolean |
Flag that indicates whether to exclude table API links for reference fields. |
|
|
Config Ref |
ConfigurationProvider |
Name of the configuration to use to execute this component. |
x |
|
Primary Node Only |
Boolean |
Determines whether to execute this source on only the primary node when running Mule instances in a cluster. |
||
Scheduling Strategy |
Scheduling Strategy |
Configures the scheduler that triggers the polling. |
x |
|
Streaming Strategy |
|
Configures how Mule processes streams. The default is to use repeatable streams. |
||
Redelivery Policy |
Defines a policy for processing the redelivery of the same message. |
|||
Reconnection Strategy |
Retry strategy in case of connectivity errors. |
Operations
To view custom or extended parent tables in ServiceNow Connector, select the Allow access to this table via web services and Allow configuration options in the table definition. |
Invoke
<servicenow:invoke>
Default operation for ServiceNow SOAP invocations.
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
Name of the configuration to use. |
x |
|
Allow Empty Value |
Boolean |
Option that enables users to clear a specific field with a null or empty value for the |
|
|
Config Ref |
ConfigurationProvider |
Name of the configuration to use to execute this component. |
x |
|
Service |
String |
Service name. |
x |
|
Operation |
String |
Operation name of the service. |
x |
|
Show Reference Values |
String |
Chooses which values are returned for reference fields. Possible options are to return |
||
Body |
Binary |
XML body to include in the SOAP message, with all the required parameters, or |
|
|
Headers |
Binary |
XML headers to include in the SOAP message. |
||
Attachments |
Object |
Attachments to include in the SOAP request. |
||
Target Variable |
String |
Name of the variable that stores the operation’s output. |
||
Target Value |
String |
Expression that evaluates the operation’s output. The outcome of the expression is stored in the Target Variable field. |
|
|
Reconnection Strategy |
Retry strategy in case of connectivity errors. |
Unauthorize
<servicenow:unauthorize>
Deletes all the access token information of a given resource owner ID so that it is impossible to execute any operation for that user without repeating the OAuth dance.
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
Name of the configuration to use. |
x |
|
Resource Owner Id |
String |
ID of the resource owner for whom to invalidate access. |
||
Config Ref |
ConfigurationProvider |
Name of the configuration to use to execute this component. |
x |
Object Types
Basic Authentication HTTP Message Dispatcher Provider
Default HTTP transport configuration.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Username |
String |
Username to use. |
x |
|
Password |
String |
Password to use. |
x |
|
Read Timeout |
Number |
Read timeout value. |
|
|
Read Timeout Unit |
Enumeration, one of:
|
Time unit for the Read Timeout field. |
|
Expiration Policy
Configures an expiration policy strategy.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max Idle Time |
Number |
Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. |
||
Time Unit |
Enumeration, one of:
|
Time unit for the Max Idle Time field. |
HTTP Requester Based Transport Provider
Custom HTTP transport configuration.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Requester Config |
String |
Requester configuration. |
x |
OAuth2 HTTP Message Dispatcher Provider
OAuth transport configuration.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Read Timeout |
Number |
Read timeout value. |
|
|
Read Timeout Unit |
Enumeration, one of:
|
Time unit for the Read Timeout field. |
|
Pooling Profile
Pooling profile type.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max Active |
Number |
Controls the maximum number of Mule components that is borrowed from a session at one time. When set to a negative value, there is no limit to the number of components that is active at one time. When the specified value for Max Active is exceeded, the pool is considered exhausted. |
||
Max Idle |
Number |
Controls the maximum number of Mule components that sits idle in the pool at any time. When set to a negative value, there is no limit to the number of Mule components that is idle at one time. |
||
Max Wait |
Number |
Specifies the number of milliseconds to wait for a pooled component to become available when the pool is exhausted and the Exhausted Action is set to |
||
Min Eviction Millis |
Number |
Determines the minimum amount of time an object sits idle in the pool before it is eligible for eviction. When non-positive, no objects are evicted from the pool due to idle time alone. |
||
Eviction Check Interval Millis |
Number |
Specifies the number of milliseconds between runs of the object evictor. When non-positive, no object evictor is executed. |
||
Exhausted Action |
Enumeration, one of:
|
Specifies the behavior of the Mule component pool when the pool is exhausted:
If a positive Max Wait value is supplied, it blocks for, at most, that many milliseconds, after which a |
||
Initialisation Policy |
Enumeration, one of:
|
Determines how to initialize components in a pool:
|
Disabled |
Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many reconnection attempts the connector source or operation can make.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Frequency |
Number |
How often to attempt to reconnect, in milliseconds. |
||
Blocking |
Boolean |
If |
||
Count |
Number |
How many reconnection attempts the Mule app can make. |
Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to reconnect at a specified frequency for as long as the Mule app runs.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Frequency |
Number |
How often to attempt to reconnect, in milliseconds. |
||
Blocking |
Boolean |
If |
Reconnection
Configures a reconnection strategy for an operation.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Fails Deployment |
Boolean |
What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
|
||
Reconnection Strategy |
Reconnection strategy to use. |
Redelivery Policy
Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max Redelivery Count |
Number |
Maximum number of times that a redelivered request can be processed unsuccessfully before returning a REDELIVERY_EXHAUSTED error. |
||
Message Digest Algorithm |
String |
Secure hashing algorithm to use if the Use Secure Hash field is |
||
Message Identifier |
Redelivery Policy Message Identifier |
One or more expressions that determine if a message was redelivered. This property can be set only if the Use Secure Hash field is |
||
Object Store |
ObjectStore |
Configures the object store that stores the redelivery counter for each message. |
Redelivery Policy Message Identifier
Configures how to identify a redelivered message and how to find out when the message was redelivered.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Use Secure Hash |
Boolean |
If |
||
Id Expression |
String |
One or more expressions that determine if a message was redelivered. This property can be set only if the Use Secure Hash field is |
Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream content in memory. If the stream content is larger than the configured buffer size, Mule backs up the buffer’s content to disk and then clears the memory.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
In Memory Size |
Number |
Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:
|
||
Buffer Unit |
Enumeration, one of:
|
Unit for the In Memory Size field. |
Repeatable In Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX buffer size. Always run performance tests to find the optimal buffer size for your specific use case.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Initial Buffer Size |
Number |
Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max In Memory Size value. |
||
Buffer Size Increment |
Number |
Amount by which the buffer size expands if it exceeds its initial size. Setting a value of |
||
Max Buffer Size |
Number |
The maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit. |
||
Buffer Unit |
Enumeration, one of:
|
Unit for the Initial Buffer Size, Buffer Size Increment, and Buffer Unit fields. |
SOAP Attributes
Attributes returned by the consume operation. Carries the protocol specific headers (such as HTTP headers) and additional transport data (such as the HTTP status line) bounded to the response.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Additional Transport Data |
Object |
Additional transport data bundled in the response. |
||
Protocol Headers |
Object |
Protocol headers bundled in the response. |
SOAP Output Envelope
Represents the response of the consume operation. Bundles the SOAP body, SOAP headers, and MIME attachments if there are any.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Attachments |
Object |
Set of attachments bounded to the response, or an empty map if there are no attachments. |
||
Body |
Binary |
XML response body. Represents the <SOAP:BODY> element. |
||
Headers |
Object |
Set of XML SOAP headers. Represents the content in the <SOAP:HEADERS> element. |
Wss Key Store Configuration
Implementation for keystores, used for encryption, decryption, and signing.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Key Store Path |
String |
Location of the keystore file. |
x |
|
Alias |
String |
Alias of the private key to use. |
||
Password |
String |
Password to access the store. |
x |
|
Key Password |
String |
Password used to access the private key. |
||
Type |
String |
Type of store, such as |
|
Wss Sign Security Strategy Adapter
Signs the SOAP request that is sent, using the private key of the keystore in the provided TLS context.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Key Store Configuration |
Keystore to use when signing the message. |
x |
||
Sign Algorithm Configuration |
Algorithms to use on the signing. |
WSS Signing Configuration Adapter
Group that holds the configuration for signing algorithms used in the sign security strategy.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Signature Key Identifier |
Enumeration, one of:
|
Key identifier type to use for the signature. |
|
|
Signature Algorithm |
Enumeration, one of:
|
Signature algorithm to use. The default is set by the data in the certificate. |
||
Signature Digest Algorithm |
Enumeration, one of:
|
Signature digest algorithm to use. |
|
|
Signature C14n Algorithm |
Enumeration, one of:
|
Defines which signature c14n (canonicalization) algorithm to use. |
|
WSS Username Token Security Strategy Adapter
Provides the capability to authenticate with a SOAP service using a username and a password by adding the UsernameToken element in the SOAP request.
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Username |
String |
Username required to authenticate with the service. |
x |
|
Password |
String |
Password for the provided username required to authenticate with the service. |
x |
|
Password Type |
Enumeration, one of:
|
Password parameter. |
|