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: 
MMK
Contributor II
Contributor II

Custom Triggering of Nprinting TASKS

Hi Team,

Thanks for your support in advance.

In my work I have 20 - Nprinting Tasks, Present Each task running for every 1 hour in a day for 5 days(MON-FRI) for all the months.

Now i want custom Triggering:

 In the following 5 months(JAN,FEB,APR,JUL,OCT) - Need to trigger for every 1 hour and

and in the remaining 7 Months(MAR,MAY,JUN,AUG,SEP,NOV,DEC) - need to trigger for every 12 hours.

how to achieve this type of custom triggering.

Labels (2)
2 Solutions

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

You could create many different triggers one for each time interval:

1 In Schedule select Weekly and check the weekdays you need to run the trigger

Ruggero_Piccoli_0-1724401450206.png

2 In Daily Frequency select Repeat Every 1 and Hours from the drop-down menu. Of course customize it based on your needs of each different trigger. Note you can also set the starting and ending time on each day, for example if you want to run it only during working hours.

Ruggero_Piccoli_1-1724401494886.png

3 Set the end date

Ruggero_Piccoli_2-1724401605697.png

You have to manually create each trigger because there is not a clone feature. Each time interval needs to have its trigger.

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.

View solution in original post

Ruggero_Piccoli
Support
Support

Hi,

To evaluate conditions a task must be run. Then, if the condition fails, the execution is stopped as you saw but the execution must start. 

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.

View solution in original post

8 Replies
Raju_6952
Creator III
Creator III

Hi, 

Create a two monthly triggers for Your requirement.

select the months accordingly.

Regards,

Raju

MMK
Contributor II
Contributor II
Author

Hi Raju,

Thanks for your reply. I tried but we don't have such options to choose particular months. I am using NPrinting May 2023 Version.

Could you please tell how select particular months.

Raju_6952
Creator III
Creator III

Schedule 1 (Every 1 Hour):

 

Create a new schedule.

Set the trigger to run every 1 hour.

Add a condition to check the current month.

Use the following condition.

Month(Today()) = 1 OR Month(Today()) = 2 OR Month(Today()) = 4 OR Month(Today()) = 7 OR Month(Today()) = 10

This condition will ensure that the trigger runs only in January, February, April, July, and October.

Schedule 2 (Every 12 Hours):

 

Create another schedule.

Set the trigger to run every 12 hours.

Add a condition to check the current month.

Use the following condition:

 

Month(Today()) = 3 OR Month(Today()) = 5 OR Month(Today()) = 6 OR Month(Today()) = 8 OR Month(Today()) = 9 OR Month(Today()) = 11 OR Month(Today()) = 12

This condition will ensure that the trigger runs only in March, May, June, August, September, November, and December.

Test the Setup:

 

Verify the schedules by running them manually or simulating the conditions for different months to ensure they trigger at the specified intervals.

Monitor and Adjust:

 

Monitor the triggers in the NPrinting Execution log to ensure they are firing as expected.

Make any necessary adjustments if you observe any discrepancies in the trigger times.

Summary:

5-Month Schedule (1 Hour): January, February, April, July, October.

7-Month Schedule (12 Hours): March, May, June, August, September, November, December.

By setting up these schedules in NPrinting, you can automate the report distribution based on your required custom timing for different months.

 

 

Please check and let me kn

ow if it it's working for you.

Raju_6952
Creator III
Creator III

##- PleasCreate Two Separate Schedules in NPrinting:

Schedule 1 (Every 1 Hour):

Create a new schedule.
Set the trigger to run every 1 hour.
Add a condition to check the current month.
Use the following condition.
Month(Today()) = 1 OR Month(Today()) = 2 OR Month(Today()) = 4 OR
Month(Today()) = 7 OR Month(Today()) = 10
This condition will ensure that the trigger runs only in January, February,
April, July, and October.
Schedule 2 (Every 12 Hours):

Create another schedule.
Set the trigger to run every 12 hours.
Add a condition to check the current month.
Use the following condition:

Month(Today()) = 3 OR Month(Today()) = 5 OR Month(Today()) = 6 OR
Month(Today()) = 8 OR Month(Today()) = 9 OR Month(Today()) = 11 OR
Month(Today()) = 12
This condition will ensure that the trigger runs only in March, May, June,
August, September, November, and December.
Test the Setup:

Verify the schedules by running them manually or simulating the conditions
for different months to ensure they trigger at the specified intervals.
Monitor and Adjust:

Monitor the triggers in the NPrinting Execution log to ensure they are
firing as expected.
Make any necessary adjustments if you observe any discrepancies in the
trigger times.
Summary:
5-Month Schedule (1 Hour): January, February, April, July, October.
7-Month Schedule (12 Hours): March, May, June, August, September, November,
December.
By setting up these schedules in NPrinting, you can automate the report
distribution based on your required custom timing for different months.


Please check and let me know if it it's working for you.




e type your reply above this line -##
Ruggero_Piccoli
Support
Support

Hi,

You could create many different triggers one for each time interval:

1 In Schedule select Weekly and check the weekdays you need to run the trigger

Ruggero_Piccoli_0-1724401450206.png

2 In Daily Frequency select Repeat Every 1 and Hours from the drop-down menu. Of course customize it based on your needs of each different trigger. Note you can also set the starting and ending time on each day, for example if you want to run it only during working hours.

Ruggero_Piccoli_1-1724401494886.png

3 Set the end date

Ruggero_Piccoli_2-1724401605697.png

You have to manually create each trigger because there is not a clone feature. Each time interval needs to have its trigger.

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.
MMK
Contributor II
Contributor II
Author

Hi Raju,

Thank you for your help.

1). I created two Task:-

         a. For Reporting Month(For every 1 hour Trigger)

         b. For Non Reporting Month(For every 12 hour Trigger).

2). Created two variable(One for reporting another one for Non Reporting )

       a. v1 = if(Month(Today()) = 1 OR Month(Today()) = 2 OR Month(Today()) = 4 OR
Month(Today()) = 7 OR Month(Today()) = 10,1,0).

       b. v2= if(Month(Today()) = 3 OR Month(Today()) = 5 OR Month(Today()) = 6 OR
Month(Today()) = 8 OR Month(Today()) = 9 OR Month(Today()) = 11 OR
Month(Today()) = 12,1,0).

3). Two Conditions based on variables are taken. Condition1 -> for Reporting Month and Condition 2 -> for Non Reporting Month

4). Task 1 -> Condition 1 Assigned and

    Task 2 -> Condition 2 Assigned

5). But the Problem is two tasks are running, Condition satisfying Task is generating report and Condition failing Task also running, in the log giving error msg : ' Conditions evaluated to false for task '.

6). is there any way to stop running the 'Condition failing Task' without Running.

 

 

 

Ruggero_Piccoli
Support
Support

Hi,

To evaluate conditions a task must be run. Then, if the condition fails, the execution is stopped as you saw but the execution must start. 

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.
MMK
Contributor II
Contributor II
Author

Thanks Ruggero_Piccoli.