Skip to main content

Hello

I managed to create an automation in FME server and successfully linked the webhook of FME to the Azure Event Grid as shown in the attached snapshot. Currently I just read the event as JSON to the logger.

 

The output is like this:

{
  "data": {
    "storageDiagnostics": {
      "batchId": "c10819b2-b006-00a8-00f0-187e50000000"
    },
    "clientRequestId": "3f49ecb9-a829-406c-948e-d57c85c4104f",
    "requestId": "a4247e74-601e-005f-0cf0-1854c2000000",
    "eTag": "0x8D9E70737425603",
    "contentLength": 17600,
    "api": "PutBlob",
    "blobType": "BlockBlob",
    "contentType": "image/png",
    "url": "https://fmeserverin.blob.core.windows.net/in-files/augmented-reality.png",
    "sequencer": "00000000000000000000000000014D700000000001f44698"
  },
  "dataVersion": "",
  "subject": "/blobServices/default/containers/in-files/blobs/augmented-reality.png",
  "eventTime": "2022-02-03T11:20:42.751Z",
  "topic": "/subscriptions/acc9023a-4f9b-447c-b394-8da2c7b9d1f5/resourceGroups/CDEMVP-APP-DEV-RG/providers/Microsoft.Storage/storageAccounts/fmeserverin",
  "id": "a4247e74-601e-005f-0cf0-1854c2061fde",
  "eventType": "Microsoft.Storage.BlobCreated",
  "metadataVersion": "1"
}

What I want to do is to create a workspace that could be triggered by this automation and receives the event JSON and extract the data.url from it. I don't know how to create such a workflow. Would you please advise?

Create a workspace with a published parameter of type Plain Text Multiline and pass the JSON from the trigger into that parameter in the automation.

You can then use e.g. the JSONExtractor to extract the JSON attributes into an FME feature in your workspace.


I'm using FME 2021, and I can't find "Published Parameter" in my Navigator. Also all the tutorials in your website don't have working links to their attached samples and workspaces??!!

 

image


I'm using FME 2021, and I can't find "Published Parameter" in my Navigator. Also all the tutorials in your website don't have working links to their attached samples and workspaces??!!

 

image

A published parameter is simply a user parameter that has been set as "published", please refer to https://community.safe.com/s/article/Using-the-Parameter-Manager

Note that there was a major change in how user parameters are defined starting with FME 2021, and I see that some of the tutorials haven't been fully updated yet.

I'm not employed by Safe Software, so I cannot answer to any broken links. If you find any, please report them to Safe support or leave a comment at the bottom of the page, where possible. The people at Safe are usually fairly quick to fix such issues, when reported.


Thanks very much, I have created the parameter, but I still can't see how this will the value be passed from the Event Grid. Would you please advice?

image


Thanks very much, I have created the parameter, but I still can't see how this will the value be passed from the Event Grid. Would you please advice?

image

When you add your workspace to the FME Server automation, you should be able to see the "PARAMETER" parameter, and to assign it the output of the EventGrid trigger.


How can I setup the result from the workspace as a published parameter so I can read it in the next workspace?


How can I setup the result from the workspace as a published parameter so I can read it in the next workspace?

You can use the Automation Writer to pass data between workspaces inside an automation:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/automations/automations.htm

See also https://community.safe.com/s/article/building-integrations-with-the-fme-server-automati


Reply