Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 30 09:41

    JGrotex on gh-pages

    Update index.html remove logo (compare)

  • Jun 30 09:39

    JGrotex on gh-pages

    Update index.html (compare)

  • Jun 30 09:34

    JGrotex on gh-pages

    Update index.html (compare)

  • Jun 30 09:26

    JGrotex on gh-pages

    Update index.html (compare)

  • Jun 30 09:23

    JGrotex on gh-pages

    Update index.html (compare)

  • Jun 30 07:21

    JGrotex on master

    Update _index.md (compare)

  • Jun 28 09:19
    mend-for-github-com[bot] edited #506
  • Jun 28 09:19
    mend-for-github-com[bot] closed #506
  • Jun 28 09:19
    mend-for-github-com[bot] edited #503
  • Jun 28 09:18

    JGrotex on master

    Update menu-footer.html (compare)

  • Jun 28 09:12

    JGrotex on master

    Update _index.md fix link (compare)

  • Jun 28 09:10

    JGrotex on master

    Update getting-started-webui.md (compare)

  • Jun 27 20:31

    JGrotex on master

    Update README.md (compare)

  • Jun 27 20:01

    JGrotex on master

    Create readme.md (compare)

  • Jun 27 19:55
    JGrotex closed #509
  • Jun 27 19:54

    JGrotex on master

    Update timers.md Changed the n… Merge pull request #561 from dh… (compare)

  • Jun 27 19:54
    JGrotex closed #561
  • Jun 27 19:53
    JGrotex edited #510
  • Jun 27 19:53

    JGrotex on master

    Fix broken link to tibco labs Merge pull request #510 from ra… (compare)

  • Jun 27 19:53
    JGrotex closed #510
Samip Kothari
@skothari-tibco
👍
Milos Veljkovic
@milosveljkovic
Hey guys, sorry for interrupt but I am blocked right now because I do not know in which direction to go. This is all about:
I get from POST request (trigger) json object, and now i am wondering what is the best way to 'process' every of object properties because every of them should go through the mathematical calculation. So what is the best way to do calculation for object's properties, each. Thanks in advance!
Matt Ellis
@mellistibco
hi @milosveljkovic what kind of math operations do you want to perform? do you need a custom activity or just basic operations available as mapping functions? you can add a return activity and reply with the desired json object and use the mapper functions
Milos Veljkovic
@milosveljkovic
I need custom math operations which will transform data from arduino to understandable value (from volt to humidity for example)7
Is there any example of how to use mapper for web ui ?
Matt Ellis
@mellistibco
you may need to implement mapper functions if you need to do something specific. yeah let me find a sample
mapping details, mostly tied to the raw json format, but worth a read: https://tibcosoftware.github.io/flogo/development/flows/mapping/
anborg
@anborg
Is there windows binary for core & ui somewhere > I want to check the system. without installing docker/ golang.
Matt Ellis
@mellistibco
No. You would need Go to build the apps if you didn’t want to use the Docker image. The apps you model are saved as .json files but the engine is compiled based on your json which allows only the required app dependencies to be included
anborg
@anborg
so one Go compilation flogo-core & and another flogo-web - those two is enough to have UI and a basic system?
Matt Ellis
@mellistibco
Yup. You can just use Flogo web and build apps via the web ui and then your target machines that will run your apps don’t need go or any additional dependencies
anborg
@anborg
I tried with master branch, didn't work. Later tried one of the tags, it worked. git checkout -b 632ab63025368b82fccab1497423538e93493c1
Matt Ellis
@mellistibco
What repo? Flogo-web?
anborg
@anborg
yes.
Matt Ellis
@mellistibco
hmm @fcastill
anborg
@anborg
::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:\data\projects_go\flogo-web\node_modules\bufferutil\build\bufferutil.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\bufferutil.cc)
c:\data\projects_go\flogo-web\node_modules\bufferutil\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'
with
[
T=v8::Object
] (compiling source file ..\src\bufferutil.cc)
c:\data\projects_go\flogo-web\node_modules\bufferutil\src\bufferutil.cc(12): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:\data\projects_go\flogo-web\node_modules\bufferutil\build\bufferutil.vcxproj]
c:\users\pnataraj\appdata\local\node-gyp\cache\14.8.0\include\node\v8.h(2869): note: see declaration of 'v8::Value::Int32Value' (compiling source file ..\src\bufferutil.cc)
c:\data\projects_go\flogo-web\node_modules\bufferutil\src\bufferutil.cc(13): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:\data\projects_go\flogo-web\node_modules\bufferutil\build\bufferutil.vcxproj]
c:\users\pnataraj\appdata\local\node-gyp\cache\14.8.0\include\node\v8.h(2869): note: see declaration of 'v8::Value::Int32Value' (compiling source file ..\src\bufferutil.cc)
gyp ERR! build error
gyp ERR! stack Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\apps\scoop\core\apps\nodejs\14.8.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command \"C:\\apps\\scoop\\core\\apps\\nodejs\\current\\node.exe\" \"C:\\apps\\scoop\\core\\apps\\nodejs\\current\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js\" \"rebuild\"
gyp ERR! cwd C:\data\projects_go\flogo-web\node_modules\bufferutil
Fabián Castillo
@fcastill
@anborg Does this happen when running yarn install? Or is it from another command? I’m seeing something similar (in Mac) during yarn install when I use NodeJS v12 and NodeJS v14. However, it’s only a warning about an optional dependency and I can run the app. I can see in your logs that you’re using NodeJS v14.8.0, is there a chance you can downgrade to Node v10 and try?
anborg
@anborg
@fcastill , Right. error was during "yarn install" with master branch on windows.
anborg
@anborg
Is there a component for "Watch folder" if a new file is added, trigger a flow, with that file content as input?
Fabián Castillo
@fcastill
I think we don’t have an official trigger for that but I found some implementations for file watcher triggers from the Flogo comunity in Github https://github.com/search?q=flogo+watcher&type=code
Milos Veljkovic
@milosveljkovic
Any suggestion for solving this error: Post http://localhost:5000/api/arduino/sendData: dial tcp 127.0.0.1:5000: connect: connection refused
I try to do REST(Post) from FLOGO to Asp.Net core ... any ideas?
Samip Kothari
@skothari-tibco
I think it should be like any other connection refused issue. You can start by calling the service not from flogo but from postman itself. Check if the port is open. Check if it has been configured to aceept connections and so forth.
Mark Mussett
@mmussett
I’d say the issue is down to socket binding on the wrong network. Check which network the socket receiver is on. Running something like 'sudo lsof -i -n -P | grep TCP | grep 5000’ will tell you which process (if any) and network they’re listening on.
x0rzkov
@x0rzkov
Hi guys, is it possible to aggregate a json response from parallel requests to a set of restful apis (like krakend) but with flogo ? alt
4 replies
@x0rzkov
Reid Lai
@reidlai
[Subject][Please reply to thread] I have alread added grpc trigger in flow and got runtime error "gRPC server services not registered” when I started my flow in docker. Then I use protoc to generate my grpc stub. Should I modify main.go to create gRPC server? Or is there some pre-built service from project-flogo can help me bring up grpc server? Thanks for your advice
Tracy Li
@lixingwang
@reidlai grpc trigger is an shim trigger so it should already generated all nesscery file when you build from cli.
@reidlai Are you trying on flogo-web UI right?
6 replies
Jörg Grote
@JGrotex
searching for a Flogo IMAP Trigger - listening for newly incoming Emails, anyone aware of something like this?
Samip Kothari
@skothari-tibco
Can you check if the imports.go file in the app/src contains grpc import?
@JGrotex
Reid Lai
@reidlai
in project-flogo/cli source code, i found api/build.go will call common.BuildPreProcessors() to create empty array of PreProcessors….now I need to find a way to use build.go to call “git submodule update —init” using preprocessor before build shim trigger. Is there any example showing how to create preProcessor?
1 reply
Reid Lai
@reidlai
Dear All I have built embeddedapp.go and shim trigger also geneate necessary pb.go and grpc.go. Then what should i do next to build binary and deploy in Docker?
1 reply
Reid Lai
@reidlai
Guys, when we talk about CI, we usually run local unit test (without server deployed). However when we build our custom trigger and activities with Flogo, we usually need to plug with different backend like MongoDB, MinIO, Elasticsearch, etc…we usually call different backend SDK to prove our trigger/activity method or function working….without server deloyed locally, do we need to spend effort to develop backend mock object? Or is there any faster. and easier method to test our integration code with backend sdk/api? Thanks for your advice
Tracy Li
@lixingwang
@reidlai Today we don’t have easier way to Mock third part servers. what we does for this kinds of use cases we normally do: Using script to start test server over docker or a test env which running test cases after that stop server/ clean up server.
Reid Lai
@reidlai
@lixingwang got it. Just found few mock solution 🤗
Reid Lai
@reidlai
Now I need to run local end2end test is there any way i can run flogo app in test suite setup?
1 reply
Yueming Xu
@yxuco
The flogo cheesecake tutorial is based on old Flogo APIs. I wonder if the new Flogo core supports something similar, or I should ignore that way of using Flogo? https://tibcosoftware.github.io/flogo/labs/cheesecake-service/
Tracy Li
@lixingwang
@yxuco I think yes, You can take a look here github.com/project-flogo/core/api
1 reply
Yueming Xu
@yxuco
I have a trigger driven by a shim.go that calls handler.Handle(context.Background(), triggerData.ToMap()) to pass trigger-data to a flow. I noticed the following code that can directly pass trigger-data to the flow if nothing is mapped in the flow input. If I use this feature to make all trigger-data automatically available to the flow activities, would I still have to declare the data fields as trigger output in the descriptor.json? I guess that it is not necessary since I do not expect user to manually map these fields. However, it may be better to declare them in descriptor.json anyway to show user which fields are available. What would you think? It would be better if the Handler API allows me to specify some mappable fields and some auto-mapped fields as well.
// https://github.com/project-flogo/core/blob/master/trigger/handler.go line 180

    if act.actionInputMapper != nil {
        inputMap, err = act.actionInputMapper.Apply(scope)
        if err != nil {
            return nil, err
        }
    } else {
        inputMap = triggerValues
    }
1 reply
Tracy Li
@lixingwang
@yxuco
  1. Yes, if nothing mapped today we will just pass all trigger data to flow
  2. We should show all triggers output to user to show the schemas
  3. Unfortunately, today there is no way to copy and update in the mapping.
8 replies
For #3, you can create an request under project-flogo/core
Yueming Xu
@yxuco
Is the flogo-web going to allow user to insert activity in an existing flow? I see a related issue project-flogo/flogo-web#707, but it does not say what we have decided to do. I think that a simple solution might be to add a "insert" button on the side of the current buttons for (delete, branch, config) on an activity tile that would allow developer to insert a new tile before or after the selected tile. Without the insert function, developer would have to use text-editor to add activity and re-import, which is not very friendly.
Fabián Castillo
@fcastill
Hi @yxuco that feature is already implemented but it is currently unreleased. You can give it a try if you use the unstable tag of the docker image (project-flogo/flogo-docker:unstable). Please let us know what you think if you give it a try.
Alternatively, in the current release you can add an activity at the end of a row and then drag it to the position that you want.
Yueming Xu
@yxuco
@fcastill Thanks for the pointer. Did not know that you can drag and insert :-)
Howard Lince III
@Howard3
Hi all, I've tried to persist flogo from docker by mounting /flogo-web/local but this just threw a host of errors. If I want to persist flogo / back it up in the context of docker, how can I?
5 replies
Yueming Xu
@yxuco
When using cli to create an app, can I make it to use my fork of flogo core? The flag --cv allows you to specify a core version, but I hope it allows me to specify a fork repo as well. I can work around it by editing the generated go.mod, although it is an extra-step that I have to script.