Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is there any way to pass parameters to a Supporting Task defined as an external program?
Currently we have:
-Task A (External Trigger)
--- Supporting Task B (after Task A finishes)
Task A is triggered by EDX with one variable passed: myVar = 1
When Task B runs the external program, I'd like to use the myVar value passed before, so I could execute "C:\MyExternalCommand.exe /myVar=1"
Is this possible?
Thanks
In plain, no.
The taskchain in Publisher can only exacute on Success or failure.
So it won´t rrecognize if a trigger has excuted on a varible, it only execute on state on the task
I would like to have parameter support as well, at least built in parameters.
I have a notification script, which I want to run on failure.
I'm missing two things:
1) A trigger that globally triggers on _any_ failure (or success).
With the current implementation I have to add one trigger for every task I want to monitor.
Or at least a way to select multiple tasks in one trigger.
2) Variables that I can use when calling the external program, for example $triggeringTaskName
With the current implementation, I have to add one external task for every task I want to check and do a unique execution for.
Current setup, 3x supporting tasks
A)
Trigger: Failure Task1
Command line statement: d:\failscript.exe "Task name 1"
B)
Trigger: Failure Task2
Command line statement: d:\failscript.exe "Task name 2"
C)
Trigger: Failure Task3
Command line statement: d:\failscript.exe "Task name 3"
Wanted scenario
A)
Trigger: Any-Task-Fails
Command line statement: d:\failscript.exe $triggeringTaskName
If you operate a Publisher, you can assign three or more triggers "on Failure" to a single Supporting task.
Passing QMC parameters to a Supporting task is not possible. In that case you're better off with three task definitions because you can embed the failure details in the command line.
Peter
Hello!
Thanks for taking your time to reply.
/Sebastian
I guess you could use the management API to create a task monitoring tool that checks for task failures and reports them in a generalized way. But I'm sure that building your own tool is part of range of possible solutions you are envisioning...
Best,
Peter
Thanks for your reply!
I "solved" this by using the "email on error" feature instead, using IFTTT - Make Your Work Flow to relay the mail to the service(s) I want to use
Only problem is that I get another system in between, but still better than nothing.