What's the real advantages of ThingWorx Flow ?
Hi,
I have a question, what's the real advantages of ThingWorx Flow comparing to JavaScript Service ?
Here are some of the possible advantages and the corresponding objections :
- "Flow provides lots of OOTB connector". --- But if the implementation of connectors are exposed as services in Resources things, JavaScript service can also call it without using Flow
- "Flow allows user to map and route between services without coding". --- But it's not big deal to implement mapping and route in JavaScript service, Thing model design and the logic of data transformation are the main work in a project .
- "Flow ensure the calling sequence of each node, while JavaScript cannot . " --- This is what I heard , but I don't believe it . I have written tens of thousands of lines of JavaScript service code and never see any disorder problem between JavaScript service. And if this point is true , JavaScript service is actually useless.
- "In IoT scenarios , you can setup Flow to retrieve data and send notification without writing any code" --- I agree, but as long as one of the node needs customizing logic , then you must writing code , then Flow loss the advantage. In any real project , there must be lots of business specific logic , specially in a Digital Thread project , I don't see the real advantages .
- "It is a good design by separating the implementation of logic from service orchestration " --- Yes , But good design is reflected through design documents, Flow is just a presentation of the design document. it doesn't help for a good design.
- "Flow, as a separated service , can provide the flexibility of scalability" --- it could a attractive feature , but currently Flow doesn't has the ability I guess.
So, I really don't see the advantage the Flow , and using Flow cause the exception handling become a complex process, like , a flow has step 1, 2 ,3 , if step2 failed , you have to rollback the effect of step 1 by some compensation operations.
Could someone tell me , in what kind of scenario , Flow is a must , or bring lots of advantages comparing to JavaScript Service .
Regards,
Sean

