githubbob42/apex-publish-workflowrules — pull request #1 by mramad2 (2014-11-04 23:12:08+00:00)
Title: 1st pass at converting xml result into json

xml

null

FX5__Job__c
FX5__Ticket__c
Workflow

25.0

SetTicketToReadOnly
RecordTypeId
ReadOnlyType
RecordType
SetTicketToReadOnly
false
LookupValue
false
true

UpdateTicketWell
Well_Name__c
FX5__Job__r.FX5__Well__r.Name
UpdateTicketWell
false
Formula
false

Ticket Status

SetTicketToReadOnly
FieldUpdate

true
FX5__Status__r.Name == 'Approved'
onCreateOrTriggeringUpdate

Dump_to_console
31.0
blah
http://stark-reef-6428.herokuapp.com/sfdc-in
FX5__Tracking_Number__c
Id
true
ccav@mobileteam.com
Dump to console
false
false

Offshore

Dump_to_console
OutboundMessage

true

FX5__Job__c.Offshore__c
equals
True

FX5__Job__c.Price_Book_Selection__c
equals
a0Ji0000001sfVk

onCreateOrTriggeringUpdate

JSON:

null
Package : { types : { members : FX5__Job__c, members : FX5__Ticket__c, name : Workflow} , version : 25.0}

Workflow : { fieldUpdates : { fullName : SetTicketToReadOnly, field : RecordTypeId, lookupValue : ReadOnlyType, lookupValueType : RecordType, name : SetTicketToReadOnly, notifyAssignee : false, operation : LookupValue, protected : false, reevaluateOnChange : true} , fieldUpdates : { fullName : UpdateTicketWell, field : Well_Name__c, formula : FX5__Job__r.FX5__Well__r.Name, name : UpdateTicketWell, notifyAssignee : false, operation : Formula, protected : false} , rules : { fullName : Ticket Status, actions : { name : SetTicketToReadOnly, type : FieldUpdate} , active : true, formula : FX5__Status__r.Name == 'Approved', triggerType : onCreateOrTriggeringUpdate} }

Workflow : { outboundMessages : { fullName : Dump_to_console, apiVersion : 31.0, description : blah, endpointUrl : http://stark-reef-6428.herokuapp.com/sfdc-in, fields : FX5__Tracking_Number__c, fields : Id, includeSessionId : true, integrationUser : ccav@mobileteam.com, name : Dump to console, protected : false, useDeadLetterQueue : false} , rules : { fullName : Offshore, actions : { name : Dump_to_console, type : OutboundMessage} , active : true, criteriaItems : { field : FX5__Job__c.Offshore__c, operation : equals, value : True} , criteriaItems : { field : FX5__Job__c.Price_Book_Selection__c, operation : equals, value : a0Ji0000001sfVk} , triggerType : onCreateOrTriggeringUpdate} }