Skip to content

Commit 3df0bbd

Browse files
committed
changed debug to be global
moved help text to each function added experimental apis (use at own risk)
1 parent f62e1f4 commit 3df0bbd

File tree

12 files changed

+1447
-593
lines changed

12 files changed

+1447
-593
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules/
2+
ca.pem
3+
test.sh

README.md

Lines changed: 238 additions & 34 deletions
Large diffs are not rendered by default.

flowservice.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,42 @@ function debug(message){
1515
dbg.message("<FLOWSERVICE> " + message);
1616
}
1717

18+
function help(){
19+
return `
20+
\x1b[4mFlowService\x1b[0m
21+
22+
\x1b[32mExport FlowService from a given project (identified from URL in webMethods.io when in FlowEditor
23+
i.e. https://tenant.int-aws-us.webmethods.io/#/projects/\x1b[1mfl65d3aa87fc1783ea5cf8c8\x1b[0m\x1b[32m/flow-editor/\x1b[1mmyFlowService\x1b[0m\x1b[32m):\x1b[0m\x1b[0m
24+
$ node wmiocli.js
25+
-d tenant.int-aws-us.webmethods.io
26+
-u user
27+
-p password
28+
flowservice-export fl65d3aa87fc1783ea5cf8c8 myFlowService export.zip
29+
30+
\x1b[32mImport Flowservice from a given file into a project \x1b[0m
31+
$ node wmiocli.js
32+
-d tenant.int-aws-us.webmethods.io
33+
-u user
34+
-p password
35+
flowservice-import fl65d3aa87fc1783ea5cf8c8 export.zip
36+
37+
\x1b[32mDelete FlowService from a given project\x1b[0m
38+
$ node wmiocli.js
39+
-d tenant.int-aws-us.webmethods.io
40+
-u user
41+
-p password
42+
flowservice-delete fl65d3aa87fc1783ea5cf8c8 myFlowService
43+
44+
\x1b[32mExecute a FlowService from a given project\x1b[0m
45+
$ node wmiocli.js
46+
-d tenant.int-aws-us.webmethods.io
47+
-u user
48+
-p password
49+
flowservice-execute fl65d3aa87fc1783ea5cf8c8 myFlowService
50+
51+
`;
52+
}
53+
1854
function init(inDomainName, inUsername, inPassword,inTimeout,inPrettyPrint,projectId){
1955
domainName = inDomainName;
2056
username = inUsername;
@@ -96,4 +132,4 @@ function deleteFlowService(flowId){
96132
rest.del(url,username,password,timeout,{},processResponse);
97133
}
98134

99-
module.exports = { init, exportFlowService, importFlowService, runFlowService, deleteFlowService };
135+
module.exports = {help, init, exportFlowService, importFlowService, runFlowService, deleteFlowService };

0 commit comments

Comments
 (0)