Created
May 21, 2014 08:43
-
-
Save ricston-git/f137dcbe135c69e7df8e to your computer and use it in GitHub Desktop.
servicenowblog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servicenow:config name="ServiceNow" username="${servicenow.username}" password="${servicenow.password}" serviceEndpoint="${servicenow.serviceEndpoint}" doc:name="ServiceNow"> | |
<servicenow:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/> | |
</servicenow:config> | |
<flow name="servicenow-usecaseFlow" doc:name="servicenow-usecaseFlow"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> | |
<servicenow:insert config-ref="ServiceNow" type="ALM_ASSET" doc:name="Insert Asset"> | |
<servicenow:insert-request> | |
<servicenow:insert-request key="quantity">#{new java.math.BigInteger(10)}</servicenow:insert-request> | |
<servicenow:insert-request key="model">Apple MacBook Pro</servicenow:insert-request> | |
<servicenow:insert-request key="modelCategory">Computer</servicenow:insert-request> | |
<servicenow:insert-request key="comments">To be checked</servicenow:insert-request> | |
</servicenow:insert-request> | |
</servicenow:insert> | |
<set-variable variableName="assetSysId" value="#[payload.'sysId']" doc:name="Set sysid"/> | |
<servicenow:update config-ref="ServiceNow" type="ALM_ASSET" doc:name="Update Asset"> | |
<servicenow:update-request> | |
<servicenow:update-request key="sysId">#[flowVars['assetSysId']]</servicenow:update-request> | |
<servicenow:update-request key="comments">Malfunctioning parts</servicenow:update-request> | |
<servicenow:update-request key="disposalReason">Faulty batch</servicenow:update-request> | |
</servicenow:update-request> | |
</servicenow:update> | |
<servicenow:delete config-ref="ServiceNow" type="ALM_ASSET" doc:name="Delete asset"> | |
<servicenow:delete-request> | |
<servicenow:delete-request key="sysId">#[flowVars['assetSysId']]</servicenow:delete-request> | |
</servicenow:delete-request> | |
</servicenow:delete> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment