Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 23 16:34
    lixingwang closed #341
  • Jul 23 16:34

    lixingwang on master

    Fix issue timer issue for futur… Merge branch 'master' into time… Merge pull request #341 from TI… (compare)

  • Jul 23 15:49
    lixingwang review_requested #341
  • Jul 23 15:49
    lixingwang opened #341
  • Jul 23 15:48

    lixingwang on timer-trigger-issue

    Merge pull request #340 from TI… Fix issue timer issue for futur… Merge branch 'master' into time… (compare)

  • Jul 22 19:00

    lixingwang on master

    fix timer issue when start from… Merge pull request #340 from TI… (compare)

  • Jul 22 19:00
    lixingwang closed #340
  • Jul 22 18:37
    lixingwang review_requested #340
  • Jul 22 18:37
    lixingwang opened #340
  • Jul 22 18:37

    lixingwang on timer-trigger-issue

    fix timer issue when start from… (compare)

  • May 03 21:29
    Mars-2030 opened #556
  • Apr 21 01:11
    whitesource-for-github-com[bot] labeled #555
  • Apr 21 01:11
    whitesource-for-github-com[bot] opened #555
  • Apr 21 01:11
    whitesource-for-github-com[bot] labeled #554
  • Apr 21 01:10
    whitesource-for-github-com[bot] opened #554
  • Apr 21 01:10
    whitesource-for-github-com[bot] edited #541
  • Apr 21 01:10
    whitesource-for-github-com[bot] edited #541
  • Apr 21 01:10
    whitesource-for-github-com[bot] edited #492
  • Apr 21 01:10
    whitesource-for-github-com[bot] edited #492
  • Apr 21 01:10
    whitesource-for-github-com[bot] edited #490
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.
Reid Lai
@reidlai
Hey guys, when I review github.com/project-flogo/grpc/activity/grpc...i found that there is shim folder….if my app is using this grpc activity how can I run build —shim? because —shim option is only for trigger…i have no clue how to run shim/build.go. Thanks for any hint
Yueming Xu
@yxuco
Screen Shot 2020-12-22 at 10.01.27 AM.png
The web UI does not validate JSON format correctly while typing. The above figure shows a valid JSON object, but I had to edit the content outside of WebUI, and pasted the whole string into WebUI and save it. If you try to type it in the UI, it'll think it is invalid, and gray out the "Save" button. Do you see this problem?
Yueming Xu
@yxuco
Is there a process to follow for this community to make changes to Flogo projects? I opened a couple of issues and pull requests for core and cli 2 weeks ago, but did not receive any feedback, and no reviewers are assigned to them, so they are basically ignored. Did I miss any step to get repo maintainers to review, accept or reject the pull requests?
Yueming Xu
@yxuco
Screen Shot 2020-12-24 at 10.45.00 PM.png
The above may be an issue for arrays. I am expecting the setting of attributes be an array of strings. However, the following code does not return what I expected:
if attrs, err := coerce.ToArray(values["attributes"]); err == nil && len(attrs) > 0 {
    for _, v := range attrs {
        if f, err := coerce.ToString(v); err == nil {
the v in the code did not return an item of string, e.g., docType. actually v returned a value {"mapping":["docType","color","name"]}
Yueming Xu
@yxuco
BTW, the values in the code is the config map activity.InitContext, i.e., ctx.Settings(). I would think that the ctx map should have already taken out the nested structure of mapping for the array field.
Reid Lai
@reidlai
Show your Settings type here
Sounds like you declared wrong type in your settings
Yueming Xu
@yxuco
It is declared as array.

The above setting is exported by the Web UI as

  "settings": {
    "keyName": "color~name",
    "attributes": {
      "mapping": [
        "docType",
        "color",
        "name"
      ]
    }
  }

It would work if I edit it to remove the nesting of mapping. Compared to trigger handler settings, arrays are actually exported as array without the nesting under mapping. So, to keep it consistent, maybe Web UI should export activity settings as array, e.g.,:

  "settings": {
    "keyName": "color~name",
    "attributes": [
      "docType",
      "color",
      "name"
    ]
  }
here is the relevant setting in descriptor.json
"settings": [{
        "name": "keyName",
        "type": "string",
        "description": "name of the composite key used to retrieve data"
    },
    {
        "name": "attributes",
        "type": "array",
        "description": "list of json-path for attributes used to construct composite key"
    },
Reid Lai
@reidlai
Based on your range statement, I can see you are developing activity
Reid Lai
@reidlai
application json sgement is just you use the activity….which activity are u using? I think you are very confused how to use Flogo
Yueming Xu
@yxuco
I am writing my own activity. I believe this is a Web UI bug.
Yueming Xu
@yxuco
Even though I can work around the problem by not using array as a type in settings. I hope someone would check if the UI correctly exports array fields in activity settings. Comparing with how trigger settings are exported, which works because the exported model does not nest array under "mapping", you can see that activity settings are exported differently by nesting arrays under "mapping", which does not work at runtime.
Reid Lai
@reidlai
I don’t have your problem so better to share your source code here
One of the confused area what I observed is why u have golang code in your flow. This is what I don’t understand
And I don’t have any info about which trigger or activity u r using
Tracy Li
@lixingwang
We adding mapping to indicate it is an object mapping. It is an UI issue for sure. If u able to create a issue on project-flogo/flogo-web, it would be awesome.
1 reply
BTW. We will take a look PRs on core and cli on-priority after shutdown.
Yueming Xu
@yxuco
@lixingwang I'll open an issue for Web UI. Yes, it makes sense for input with nested "mapping" to indicate object mapping. But, for settings are constant configuration objects, it would not need nested "mapping". Maybe not many people are using object in activity settings because most trigger/activity require only simple primitive types in configuration. In my case, the configuration is complex enough that I would like to use JSON object so I do not have to escape quotes when configuring the activities. The current Web UI handles such complex configs correctly for triggers, but not for activity settings.
Yueming Xu
@yxuco
trigger.HandlerConfig now specifies array of actions. But OSS Web UI cannot import models with this format. It can import only models with a single action. My app contains a tool for generating Flogo models using app.Config, but the output model contains actions in trigger.HandlerConfig, and thus the model cannot be imported to the Web UI. How can I work around this problem? I guess that I can serialize the app.Config into JSON and then edit the JSON to replace actions with the first action in the handler. Is there an easier way to generate model that conforms with the Web UI? Or is the Web UI going to accept the new app.Config format?
2 replies
Fabián Castillo
@fcastill

We adding mapping to indicate it is an object mapping. It is an UI issue for sure. If u able to create a issue on project-flogo/flogo-web, it would be awesome.

@lixingwang So object mappings are not allowed at all in the activity settings, correct? If so yeah, the UI is wrapping the objects in the "mapping" prop because it is assuming that there could be a mapping inside the object.

Yueming Xu
@yxuco
@fcastill actually, there are a few activities in the contrib repo that are exceptions. Look at actreturn, actreply and mapper, they are all activities that use settings to handle input data. Even though they are special for manipulating data already in the output scope of the flow, it seems confusing to use settings to handle input data flows. Maybe the platform should discourage this type of use of settings.
Tracy Li
@lixingwang
@yxuco @fcastill Object mapping only make sense for input.
Settings are kinds of configuration which haven’t changed a lot at runtime.
genericpragmatism
@genericpragmatism

Hey everyone, I wanted to jump into flogo but I'm having problems at basically very beginning. I was actually able to run some app from the tutorial (https://tibcosoftware.github.io/flogo/labs/flogo-cli/) but I can't seem to make it work when trying to run examples.
e.g.: the most basic I seem to have found, https://github.com/vijaynalawade/flogo-contrib/tree/master/activity/sleep

[bananek@localhost flogo]$ flogo install github.com/vijaynalawade/flogo-contrib/activity/sleep
Error validating project: not a valid flogo app project directory, missing flogo.json

Sorry if it's something really menial but just can't get to it somehow.

2 replies
lafcabra
@lafcabra
Hey all, I may have missed it in the documentation but is there any way to change the icon for an activity?
3 replies
My business is fairly strict on unified design principles as far as UX and visuals. Changing the logos and theme to match the company colors is fairly straight forward with a bind mount for assets but, silly as it may be, our user feedback has repeatedly requested for the icons on the webui activities to be representative of the internal/external systems they are interacting with.
reallyroy
@reallyroy
Hi there everyone, I just wanted to know if there is a way to install a custom activity into the WebUI from a local folder rather than a github URL?
reallyroy
@reallyroy
Also, how do we uninstall an activity from the WebUI? The flogo CLI has an install option but no remove/uninstall option.
1 reply
Fabián Castillo
@fcastill

Regarding installing local contributions, there's no straightforward way to do it while the UI is running, because the environment is running inside a docker image. Even if you manage to enter into the container and install your contribs using the CLI, there's no way to tell the UI to refresh and take your changes.... unless you install another activity through the UI after your manual changes.

I think there's a way to make the local folder flow work with some modifications to the code in the UI. If someone wants to give a try I'm thinking the URL parser here can be modified: https://github.com/project-flogo/flogo-web/blob/master/apps/server/src/modules/contrib-installer/microservice/install.ts to allow installing from a specific path in the filesystem, say /flogo/contributions, and then developers can mount their local folders to that path in the docker container so the UI can load them.

There's a way to pre-install your contributions though, if you extend the Dockerfile, let me know if that would help you and I can share a sample.
凌见瑞(Jerry.Ling)
@lingjianrui
I got an issue when publish output message to the channel. according to the debug message, it seems like i should register the channel to the engine first . But i could not find the entry setting . Anybody can tell me the way to register channel to the engine through webui?
凌见瑞(Jerry.Ling)
@lingjianrui
Error installing contribution/dependency: # github.com/DataDog/zstd
凌见瑞(Jerry.Ling)
@lingjianrui
Tracy, I am not able to install the kafka activity. It shows above error while installing from webui.
1 reply
@lixingwang
凌见瑞(Jerry.Ling)
@lingjianrui
apt-get install gcc-multilib fix github.com/DataDog/zstd installation issue.
Paul
@ptman:kapsi.fi
[m]
how dead is flogo?
4 replies
agg24ankit
@agg24ankit
Hi all, is there any activity available for Salesforce and SFTP
agg24ankit
@agg24ankit
Is there any activity to write custom go code in between the flow
meta-research-jack
@meta-research-jack
image.png
Hi there, I am trying out Flogo, download the docker image and this is what I am looking at
may I know if it's possible to set the domain of the REST API to a variable?
1 reply
Because I will need to call it across different flow and the service is one of the microservice that I am having.