Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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