Creating workflow by using JavaScript

Asked By 0 points N/A Posted on -
qa-featured

I want to create the workflow chart by using the JavaScript open source library so that it can be saved in the database. I also want to edit the workflow items connections so changes can be made in the database. Can I body having any idea to do this task?

SHARE
Answered By 0 points N/A #156203

Creating workflow by using JavaScript

qa-featured

Hi,

JavaScript is a scripting language not programming language. It enables the developer to leave scripting with light programming. The workflow chart by using the JavaScript open source library, editing workflow items connections to change the database is possible. Have a look at the codes below:

                // Create DB and fill it with records

                var friends = TAFFY([

                                {"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle,WA","status":"Active"},

                                {"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX","status":"Active"},

                                {"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington,          D.C.","status":"Active"},

                                {"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA","status":"Active"}            

                ]);

                // Find all the friends in Seattle

                                friends({city:"Seattle, WA"});

                // Find John Smith, by ID

                                friends({id:1});

                // Find John Smith, by Name

                                friends({first:"John",last:"Smith"});

I hope you understand it.

Related Questions