Import of partitioned file and external signal: how to trigger the external signal just once? | Community
Skip to main content
LiviaD1
Level 3
January 15, 2021
Solved

Import of partitioned file and external signal: how to trigger the external signal just once?

  • January 15, 2021
  • 1 reply
  • 2250 views

Hi there,

I'm trying to import a file that has been partitioned in 10 parts. When the import ends, this wkf must trigger another wkf through an external signal.

The problem is that, since there are 10 parts, the external signal is triggered 10 times, while we need just one trigger to let this wkf starts after the previous one.

This behavior is discouraged by Adobe online documentation (The activity cannot be triggered more often than every 10 minutes.), in fact the second wkf doesn't work correctly.

 

Is there a way to import several file parts but trigger just once another workflow?

How can be done? The main point is that the first wkf reaches "end" activity 10 times instead of just one and I'm unable to find a solution to trigger the second wkf just once.

 

Please note that I need absolutley to trigger the second wkf after the previous because its activities must be executed necessarily when the import is ended. This means for example that I can't start the second wkf with a scheduler, because I can't be sure that the import is ended in time (if there is an error in import, a biggest file, ....)

If you have any different ideas (not using API), let me know!

Thanks,

Livia

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bisswang

The "once in 10 minutes" applies to External Signal calls via the API only.
From within a workflow, you don't have that limit on the End activity

 

How are you able to determine a certain part?

1 way might be:

  • Use a custom resource
  • When starting a partitioned part, insert into the table
  • When processed, remove it from the table
  • At the end, check if the table contains no more part for the current job, then only trigger the end activity (via a Test activity).

1 reply

bisswangAdobe EmployeeAccepted solution
Adobe Employee
January 15, 2021

The "once in 10 minutes" applies to External Signal calls via the API only.
From within a workflow, you don't have that limit on the End activity

 

How are you able to determine a certain part?

1 way might be:

  • Use a custom resource
  • When starting a partitioned part, insert into the table
  • When processed, remove it from the table
  • At the end, check if the table contains no more part for the current job, then only trigger the end activity (via a Test activity).
LiviaD1
LiviaD1Author
Level 3
January 15, 2021

Hi @bisswang, thank you for the answer but I don't understand your solution. Which kind of custom resource would you create? I mean, you'll use it to store file names? And how to delete each part at the end of import data? Please note that I tried to use Test activity many times, without finding a good solution. For example, I tried to use "filename" vars in order to send to my triggering end just 1 flow (1 file) but I don't know how to define "file name" standard variabile, I supposed that it is crearted automatically by a Transfer File activity but it's not so. In the end, just to remember that I'm using ACS that hasn't the same power of custom implementation of ACC.