Skip to main content
Question

How can I run one of six workspaces as a subscription to an email publication?


erik_jan
Contributor
Forum|alt.badge.img+17

I have the following situation, using FME Server 2017:

I created an Email publication (IMAP) to check for new emails.

Based on the subject line I want to trigger a Topic, triggering a subscription to run a workspace.

How can I trigger different topics for different Subject lines in the Email?

I tried replicating the publication, but FME does not allow multiple publications to the same email account (with different Subject line filters).

Anybody any ideas or experience with this?

Any help is appreciated.

Erik

10 replies

ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 7, 2017

I've done it before I basically triggered a master workspace to run when the notification comes in and that master workspace reads the notification and differentiates on which workspace should run depending on the subject line and trigger a job submitter with the appropriate workspace,

its a bit awkward but it works


erik_jan
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 7, 2017
ciarab wrote:

I've done it before I basically triggered a master workspace to run when the notification comes in and that master workspace reads the notification and differentiates on which workspace should run depending on the subject line and trigger a job submitter with the appropriate workspace,

its a bit awkward but it works

Thanks @ciarab,

 

But all 6 workspaces I mentioned are already Wrapper workspaces that use FMEServerJobsubmitters to kick off workspaces.

 

Introducing another level would make the workflow even more complicated.

 

But as you say, it might be the only solution.

 

Erik

 


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 7, 2017
erik_jan wrote:
Thanks @ciarab,

 

But all 6 workspaces I mentioned are already Wrapper workspaces that use FMEServerJobsubmitters to kick off workspaces.

 

Introducing another level would make the workflow even more complicated.

 

But as you say, it might be the only solution.

 

Erik

 

 

@erik_jan I would also be interested in a more elegant way to do this as I expect alot of people have similar needs

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • September 7, 2017
@erik_jan @ciarab Perhaps the simpler solution there is for the "master" workspace to not call other jobs, but to trigger certain topics with the FMEServerNotifier. Then there's a bit less complexity because it's not another layer of wrapper workspace; it just triggers a topic that the other six workspaces respond to.

 


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • September 7, 2017
ciarab wrote:

I've done it before I basically triggered a master workspace to run when the notification comes in and that master workspace reads the notification and differentiates on which workspace should run depending on the subject line and trigger a job submitter with the appropriate workspace,

its a bit awkward but it works

@erik_jan @ciarab Perhaps the simpler solution there is for the "master" workspace to not call other jobs, but to trigger certain topics with the FMEServerNotifier. Then there's a bit less complexity because it's not another layer of wrapper workspace; it just triggers a topic that the other six workspaces respond to.

 


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 7, 2017
mark2atsafe wrote:
@erik_jan @ciarab Perhaps the simpler solution there is for the "master" workspace to not call other jobs, but to trigger certain topics with the FMEServerNotifier. Then there's a bit less complexity because it's not another layer of wrapper workspace; it just triggers a topic that the other six workspaces respond to.

 

Oh yes that's a good idea, makes sense to do it like this makes better use of the notifications

 

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 7, 2017
mark2atsafe wrote:
@erik_jan @ciarab Perhaps the simpler solution there is for the "master" workspace to not call other jobs, but to trigger certain topics with the FMEServerNotifier. Then there's a bit less complexity because it's not another layer of wrapper workspace; it just triggers a topic that the other six workspaces respond to.

 

This would be an alternative.

 

But I would rather have the option to have multiple publications with the same email and different subject filters.

 

Would have the same result without introducing a new level of workspaces.

 

 


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • September 7, 2017
erik_jan wrote:
This would be an alternative.

 

But I would rather have the option to have multiple publications with the same email and different subject filters.

 

Would have the same result without introducing a new level of workspaces.

 

 

Yes, I tried to do the same and found you can't create more than one publication with the same email address. There are several ways around but I think you're right that it's best to have multiple publications with one email but several topics. I don't see any existing request for this, so my suggestion is to post it as an idea on this site and see how many votes it can gather.

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 7, 2017
mark2atsafe wrote:
Yes, I tried to do the same and found you can't create more than one publication with the same email address. There are several ways around but I think you're right that it's best to have multiple publications with one email but several topics. I don't see any existing request for this, so my suggestion is to post it as an idea on this site and see how many votes it can gather.

 

I will create the idea, thanks

 

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Author
  • Contributor
  • September 7, 2017

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings