Skip to content

Instantly share code, notes, and snippets.

Jameson Wildwood jamesontriplett

View GitHub Profile
View gist:26f3aab0f6ba0ca8316550be722e47d0
Verifying that +tealcosmo is my blockchain ID. https://onename.com/tealcosmo
@jamesontriplett
jamesontriplett / log4j2.xml
Last active Dec 3, 2015
Full Mule log4j2.xml
View 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">
@jamesontriplett
jamesontriplett / x.xml
Created Dec 3, 2015
Create MessageID Session Variable
View x.xml
<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" />
@jamesontriplett
jamesontriplett / log2.log
Created Dec 3, 2015
Sample Log file with messageIDs
View log2.log
[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
@jamesontriplett
jamesontriplett / log1.log
Created Dec 3, 2015
Sample Log file without MessageIDs
View log1.log
[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
@jamesontriplett
jamesontriplett / gist:4cf913108cc27db3eda6
Last active Aug 29, 2015
Example usage of the SFDC Create-Job usage.
View gist:4cf913108cc27db3eda6
<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]"
You can’t perform that action at this time.