Skip to content

Instantly share code, notes, and snippets.

@estebanroblesluna
Created May 11, 2011 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estebanroblesluna/966378 to your computer and use it in GitHub Desktop.
Save estebanroblesluna/966378 to your computer and use it in GitHub Desktop.
<flow name="create-contact">
<vm:inbound-endpoint path="createSalesforceContactFromActiviti" exchange-pattern="request-response" />
<custom-processor class="org.mule.module.activiti.SplitAndSetFieldsProcessor" />
<sfdc:create type="Contact">
<sfdc:sObject>
<sfdc:field key="FirstName" value="#[header:OUTBOUND:FirstName]"/>
<sfdc:field key="LastName" value="#[header:OUTBOUND:LastName]"/>
<sfdc:field key="Email" value="#[header:OUTBOUND:Email]"/>
<sfdc:field key="Title" value="#[header:OUTBOUND:Title]"/>
<sfdc:field key="Phone" value="#[header:OUTBOUND:Phone]"/>
</sfdc:sObject>
</sfdc:create>
<expression-transformer>
<return-argument evaluator="string" expression="Successfully created a contact!"/>
</expression-transformer>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment