The invention provides a
workflow design method and
system based on Raphael. The
workflow design method comprises the following steps: constructing a
flow chart comprising a starting node, a task node, an ending node and a flow line through a WEB flow designer developed based on a Raphael
vector graphics library; an executor attribute and a Grouping script used for injecting service logic are configured for each task node, and a condition judgment script is configured for each outbound connecting line; according to the method, a
flow chart is serialized into a flow definition file in a
JSON format, then the flow definition file in the
JSON format is analyzed into structured data, an
executable flow model is further generated, then a
workflow engine is utilized to execute Grouping scripts of task nodes one by one, and corresponding task node instances are generated; according to the configured connection line condition, the circulation line meeting the script
verification condition is judged, the next ready node is generated, the to-be-processed person is pushed to the required executor, and the process is repeated and successively passes through the multiple nodes until the process is ended, so that the
coupling degree between the workflow and the
service system is effectively reduced, and the method has the characteristics of high flexibility, strong expansibility and the like.