Force Release Assemble Job

Post Reply
jasonx
Member
Posts: 50
Joined: Wed Jul 03, 2019 3:03 pm

Force Release Assemble Job

Post by jasonx »

Is it possible to force release Assumble job? I know there is a timeout but that won't work with what I am trying to achieve.
freddyp
Advanced member
Posts: 1161
Joined: Thu Feb 09, 2012 3:53 pm

Re: Force Release Assemble Job

Post by freddyp »

It will help if you explain what it is you are trying to achieve.
jasonx
Member
Posts: 50
Joined: Wed Jul 03, 2019 3:03 pm

Re: Force Release Assemble Job

Post by jasonx »

Hey Freddy,

I am trying to create a flow that will group 5 jobs together as they come in and be able to assign them all the same private data (Giving them the same Batch ID).

I also want to have a timeout at a certain point in the day where if 5 jobs aren't reached then they can be released by time or manually.

My current thought process was to use Assemble job so I could apply the same private data and then ungroup the jobs and keep processing.

I am trying to essentially create a batch of jobs made up of multiple files.
laurentd
Member
Posts: 160
Joined: Wed Mar 13, 2019 2:06 pm

Re: Force Release Assemble Job

Post by laurentd »

Hi Jason, there's an app for that: Counter - Numberer
No need to assemble, and no need to wait or release jobs.
.
batch.png
batch.png (57.52 KiB) Viewed 480 times
Laurent De Wilde, Solution Architect @ Enfocus
User avatar
tdeschampsBluewest
Member
Posts: 156
Joined: Tue Jun 01, 2021 11:57 am

Re: Force Release Assemble Job

Post by tdeschampsBluewest »

Without using any additional app, it’s entirely possible to assign a common number that increases every five files, using only Switch’s basic elements.

In PrivateData, you can use the following sequence:

Code: Select all

myGroupID = [Switch.Calculation:Expression="round([Switch.Counter:Width="9",Id="someUniqueID"]/5+0.49999999)"]
Here, the Switch Counter (for which you can set a custom width and unique ID) is divided by 5, representing your group size.

Example:

Code: Select all

1 => 0.2  
2 => 0.4  
3 => 0.6  
4 => 0.8  
5 => 1.0  
6 => 1.2  
...

To make sure it rounds up correctly, you need to add 0.499999 before applying the round function, since Switch rounds to the nearest integer (.5 will be rounded up).

For instance:

Code: Select all

1 = round(0.2 + 0.4999) = 0.6999 => 1  
2 = round(0.4 + 0.4999) = 0.8999 => 1  
3 = round(0.6 + 0.4999) = 1.0999 => 1  
4 = round(0.8 + 0.4999) = 1.2999 => 1  
5 = round(1.0 + 0.4999) = 1.4999 => 1  
6 = round(1.2 + 0.4999) = 1.6999 => 2  

Later in the Assemble job, you can always create a release condition based on the hour of the day.
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
jasonx
Member
Posts: 50
Joined: Wed Jul 03, 2019 3:03 pm

Re: Force Release Assemble Job

Post by jasonx »

How do you release the 5 jobs based on either there being 5 jobs or a time of day?

Either using Assemble job or the Hold Job?

Or is there anotehr way or app?
jasonx
Member
Posts: 50
Joined: Wed Jul 03, 2019 3:03 pm

Re: Force Release Assemble Job

Post by jasonx »

I ended up creating my own script for grouping of job folders to a threshold and attempting to implemented the timer functionality now.
Post Reply