Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Bodo
Contributor II
Contributor II

Connect Triggers of different tasks

Hi there,

I am using NPrinting and got a hopefully simple problem 🙂

For example: I have three tasks A,B & C and each task has its individual trigger, set by time settings.

Order is A , B and C with one hour distance execution time (Ø- execution time per task 15min, 45min buffer).

I don't want them to overlap, when the tasks are executed and like to create a predecessor - successor behaviour.

Ideally, I need a possibilty to set a specific time for excution of task B and an additional necessary condition that task A is completed. Besides, I am still interested in setting a predecessor - successor behaviour.

Thanks in advance,

B. from Hamburg

Labels (2)
5 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

NPrinting 17.0 which you have indicated as the version you are using does not have such functionality and also is out of support - so please upgrade.

Once upgraded to more current version then you can use API to achieve what you want. Below links describe steps and methods on how to set this up. In short you need to use QlikView to trigger those tasks and monitor their status. 

This is the setup - it applies also to QlikView:

https://community.qlik.com/t5/Qlik-NPrinting-Discussions/How-to-use-Qlik-NPrinting-APIs-inside-a-Qli...

you can also use subroutines I have written:

https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/

thats it.

 

The above requires knowledge in QlikView scripting and also proper setup of Rest connectors which is described in the links above.

cheers 

 

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

I agree with @Lech_Miszkiewicz and I would like to add that Qlik NPrinting APIs are described in https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/Extending/Intro-Extending.htm:

- to run a new task execution use https://help.qlik.com/en-US/nprinting/May2022/APIs/NP+API/index.html?page=57

- then you have to retrieve its status with https://help.qlik.com/en-US/nprinting/May2022/APIs/NP+API/index.html?page=5

There is no way to be notified when the first task is finished, you have to check the status multiple times and you can use API in a Qlik script as per Lech's suggestion or develop custom software that uses them.

 There is not native, built-in, feature to execute tasks in sequence at the moment.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
David_Friend
Support
Support

@Bodo is that the actual version of NPrinting you are on?

Bodo
Contributor II
Contributor II
Author

Hi David,

I am sorry for the late reply, my version is 21.14.5.0. Does this change the possibility of my requirement?

Best regards

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Bodo - that confirms that you can use options described in my above post.

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.