Skip to content

Instantly share code, notes, and snippets.

Mariano Gonzalez marianogonzalez

Block or report user

Report or block marianogonzalez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View store.xml
<os:contains id="#[userId]" objectStore="tokensStore" />
View dmt.java
@OnException(SalesforceSessionExpiredExceptionSalesforceSocketConnectionExceptionEnricher.class)
@OutputResolver(output = ApexSoapMetadataCategoryResolver.class)
public XMLStreamReader invokeApexSoapMethod(@Connection AbstractConfig connection,
@DisplayName("Apex Class Method Name") @MetadataKeyId(ApexSoapMetadataCategoryResolver.class) String soapMethodName,
@Content @TypeResolver(ApexSoapMetadataCategoryResolver.class) XMLStreamReader input)
throws SalesforceException, SoapCallException {
SalesforceConnector connector = new SalesforceConnector();
connector.setConfig(connection);
connector.initialize();
// TODO: Accessing the Message or Event is no longer permitted in SDK operations.
View devkit.java
public XMLStreamReader invokeApexSoapMethod(String soapMethodName, XMLStreamReader input, MuleEvent event) {
...
}
View mule4force.xml
<flow name="useTheForceBatch">
<http:listener path="/forceWielders" config-ref="forceListener" />
<batch:job name="forceJob">
....
</batch:job>
</flow>
View iterablebatch.xml
<batch:job name="forceJob">
<batch:input>
<http:listener path="/forceWielders" config-ref="forceListener" />
<ee:transform>
<ee:message>
<ee:set-payload><![CDATA[%dw 2.0
output application/java
---
payload
}]]></ee:set-payload>
View forcewielders.json
[
{
"name": "Luke Skywalker",
"darkSide": true
},
{
"name": "Ben Solo",
"darkSide": true
},
{
View batchel2.java
#[recordVars[‘foo’]] -> #[vars.foo]
View batchel.java
#[failureExceptionForStep('step1')] -> #[Batch::failureExceptionForStep('step1')]
View m4aggregator.xml
<batch:aggregator size="100">
<foreach>
<script:execute engine="groovy">
<script:code>
vars['id'] = 'someValue'
</script:code>
</script:execute>
</foreach>
</batch:aggregator>
View oldcommit.xml
<batch:commit size="100">
<foreach>
<expression-component>
record.recordVars['id'] = 'someValue'
</expression-component>
</foreach>
</batch:commit>
You can’t perform that action at this time.