Skip to content

Instantly share code, notes, and snippets.

View jamesonwildwood's full-sized avatar

Jameson Wildwood jamesonwildwood

  • Capgemini
  • Chapel Hill, NC
View GitHub Profile
Verifying that +tealcosmo is my blockchain ID. https://onename.com/tealcosmo
@jamesonwildwood
jamesonwildwood / log4j2.xml
Last active December 3, 2015 00:35
Full Mule log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Properties>
<Property name="logDir">${sys:mule.home}/logs</Property>
<Property name="appName">myapp</Property>
</Properties>
<Appenders>
<RollingFile name="diagnostic" fileName="${logDir}/mule-app-${appName}.log"
append="true"
filePattern="${logDir}/$${date:yyyy-MM}/mule-app-${appName}-%d{MM-dd-yyyy}-%i.log.gz">
@jamesonwildwood
jamesonwildwood / x.xml
Created December 3, 2015 00:24
Create MessageID Session Variable
<set-session-variable variableName="messageID" value="#[java.util.UUID.randomUUID().toString()]" />
<logger level="INFO" message="Received message with messageID=#[messageID] from queue my_queue"
category="com.company.myapp.flowname" doc:name="INFO" />
@jamesonwildwood
jamesonwildwood / log2.log
Created December 3, 2015 00:18
Sample Log file with messageIDs
[12-02 11:26:08] INFO flow1: 18a72d84cb3b : Got Records 4
[12-02 11:26:08] INFO Transformer: 18a72d84cb3b : Update Case to be mapped requestAction=UpdateJIRA, jiraId=STAR-10491
[12-02 11:26:08] INFO sfdc-flow: 18a72d84cb3b : Outbound to SFDC recordId:303487
[12-02 11:26:08] INFO sfdc-flow: 18a72d84cb3b : SFDC call success recordId:303487
[12-02 11:26:08] INFO update-record: 18a72d84cb3b : After Update 303487
[12-02 11:26:08] INFO Transformer: 18a72d84cb3b : Update Case Payload to be mapped requestAction=UpdateJIRA, jiraId=STAR-10496
[12-02 11:26:08] INFO sfdc-flow: 18a72d84cb3b : Outbound to SFDC recordId:303488
[12-02 11:26:08] INFO sfdc-flow: 18a72d84cb3b : SFDC call success recordId:303488
[12-02 11:26:08] INFO update-record: 18a72d84cb3b : After Update 303488
[12-02 11:26:08] INFO Transformer: 18a72d84cb3b : Update Case Payload to be mapped requestAction=UpdateJIRA, jiraId=STAR-10491
@jamesonwildwood
jamesonwildwood / log1.log
Created December 3, 2015 00:16
Sample Log file without MessageIDs
[12-02 11:26:08] INFO flow1: Got Records 4
[12-02 11:26:08] INFO Transformer: Update Case to be mapped requestAction=UpdateJIRA, jiraId=STAR-10491
[12-02 11:26:08] INFO sfdc-flow: Outbound to SFDC recordId:303487
[12-02 11:26:08] INFO sfdc-flow: SFDC call success recordId:303487
[12-02 11:26:08] INFO update-record: After Update 303487
[12-02 11:26:08] INFO Transformer: Update Case Payload to be mapped requestAction=UpdateJIRA, jiraId=STAR-10496
[12-02 11:26:08] INFO sfdc-flow: Outbound to SFDC recordId:303488
[12-02 11:26:08] INFO sfdc-flow: SFDC call success recordId:303488
[12-02 11:26:08] INFO update-record: After Update 303488
[12-02 11:26:08] INFO Transformer: Update Case Payload to be mapped requestAction=UpdateJIRA, jiraId=STAR-10491
@jamesonwildwood
jamesonwildwood / gist:4cf913108cc27db3eda6
Last active August 29, 2015 14:15
Example usage of the SFDC Create-Job usage.
<batch:step name="Batch_Step1">
<batch:commit size="1000" doc:name="Batch Commit">
<data-mapper:transform
config-ref="Pojo_To_List_Order_Line_Items__c__1Pojo_To_List_Order_Line_Items__c__2"
doc:name="Pojo To List&lt;Order_Line_Items__c&gt;"/>
<set-variable variableName="batchPayload" value="#[payload]" doc:name="Variable"/>
<sfdc:create-job config-ref="SalesforceOrderConfig"
operation="upsert" type="Order_Line_Items__c" doc:name="sfOrderJob"
externalIdFieldName="EXT_OrderShipToLine_Number__c" />
<set-variable variableName="job" value="#[payload]"