This is the top of my process builder metadata file. I read here and here that you can set the status to 'Draft' and it will appear as inactive on the UI. Then I read here that you have to set 'activeVersionNumber' to 0 and that 'FlowDefinition' element will override 'Flow' element's status field. But our process builder.flow file does not have a 'FlowDefinition' element. So what do I do ?
<?xml version="1.0" encoding="UTF-8"?> <Flow xmlns="http://soap.sforce.com/2006/04/metadata"> <status>Draft</status>
... Also we don't have any FlowDefinition files. Why would that be?
Found FlowDefinition file:
<?xml version="1.0" encoding="UTF-8"?> <FlowDefinition xmlns="http://soap.sforce.com/2006/04/metadata"/>