zyzbroker / salesforce-process-flow-viewer

An utility tool to convert salesforce process flow XML definition into markdown format in such way that it is easily viewed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A salesforce process flow definition Viewer

This utility enable the user to convert process flow XML definition file into the markdown file and easily view it in the markdown viewer

Technology stack

  • JDK 1.8
  • Micronaut Framework (include Oracle GraalVM native image build support).

How to run it

  • setup JAVA_HOME
  • unzip distributions/process-viewer-shadow.zip
  • go to unzipped folder
  • run the following terminal script
   java -jar libs/process-viewer-all.jar -f:{yourProcess.flow} -o:{yourOutput.md}

PDF manual conversion process

  • install node (must be version 10..). Gitbook pdf ouptput only works on node 10.. version.
  • install gitbook
  • open terminal run the following commands
  • type "gitbook init"
  • update Summary.md to include your pdf.
  • type "gitbook pdf" and it will generate book.pdf

Note: due to the fact that "__" is reserved for emphasis in markdown, thus we have to use "--" to replace it.

Account_Process.flow sample

<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
    <actionCalls>
        <processMetadataValues>
            <name>ActionCallType</name>
            <value>
                <stringValue>flow</stringValue>
            </value>
        </processMetadataValues>
        <processMetadataValues>
            <name>flowSelection</name>
            <value>
                <stringValue>DH Client Community Create ChatterGroup for Approved Accounts</stringValue>
            </value>
        </processMetadataValues>
        <name>myRule_11_A1</name>
        <label>Launch Flow</label>
        <locationX>1100</locationX>
        <locationY>200</locationY>
        ...

Here is the markdown result

MarkdownResult

Next To do

  • use Oracle GraalVM to build executable file to run everywhere without setup JDK1.8
  • need to add feature to convert markdown to PDF so that the user can view PDF instead of using markdown viewer.

About

An utility tool to convert salesforce process flow XML definition into markdown format in such way that it is easily viewed.


Languages

Language:Java 58.3%Language:Shell 15.2%Language:Batchfile 8.8%Language:HTML 6.4%Language:JavaScript 5.3%Language:CSS 3.8%Language:Kotlin 2.2%