cancel
Showing results for 
Search instead for 
Did you mean: 
8 Replies
Moises
New Member
New Member

Re: How to find out which values can be used in text / enum variables?

The EnumUtils class has a method called isValidEnum whichChecks if the specified name is a valid enum for the class. It returns a boolean true if the String is contained in the Enum class, and a boolean false otherwise.

MyCCPay Log In

0 Kudos
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: How to find out which values can be used in text / enum variables?

FFCore has a BUG when using the External node to update media information. The External node is updating the FFCore variable but not the xpif. The xpif is driving the print outcome. Updating the xpif, which you are doing, works as expected. Your script most likely is correct -- but won't work until we fix the BUG.

r.blake
Frequent Member
Frequent Member

Re: How to find out which values can be used in text / enum variables?

So I tried:

f_setvars.write ("$FFwfJob.sidesImaged$=one-sided" + "\n")
f_setvars.write ("$FFwfJob.printQuantity$=15" + "\n")
f_setvars.write ("$FFwfJob.collation$=3")

and only print quantity was set, everything else just got defaults (duplex, collated)

When I submitted exact same values in XPIF ticket, everything worked fine and was set correctly.

So is this the case of these variables not working despite being listed as supported (then why are they listed there then?), or have I written something wrong?

 

0 Kudos
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: How to find out which values can be used in text / enum variables?

Enum values for sidesImaged:

one-sided

two-sided-long-edge

two-sided-short-edge

enum values for collation:

"1"  -- for 'other'

"2"  -- for 'unknown'

"3"  -- for 'uncollated-sheets’

"4" -- for 'collated-documents’

"5" -- for 'uncollated-documents’

 

0 Kudos
r.blake
Frequent Member
Frequent Member

Re: How to find out which values can be used in text / enum variables?

doesn't seem to be the case - it lists $FFwfJob.sidesImaged$ as supported, which is listed as enum type.

"$FFwfJob.collation$" is also an enum, etc.

Plus this still doesn't answer the questions of what values to use for the variables to be recognized as valid, they aren't specified, and there aren't any examples in the guide.

 

0 Kudos
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: How to find out which values can be used in text / enum variables?

I do not believe the External node support the use of any FFCore variables that use enums. The list of supported (when the BUGs are fixed) variables can be seen by selected the "search" icon for "Additional variables" -- see below

p1.pngp2.png

0 Kudos
r.blake
Frequent Member
Frequent Member

Re: How to find out which values can be used in text / enum variables?

What about other variables, how would I know what variable maps to what property on the printer (FFCore help guide doesn't mention that in detail) and what values should be used to be accepted as valid.

There are a lot of variables listed as enum type, which means they can only accept pre-defined values, but these is no mention of what those values are.

0 Kudos
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: How to find out which values can be used in text / enum variables?

This is a known BUG. The FFCore stock name variable gets updated but not the stock name in the xpif. The xpif drives the print outcome. Contacting Xerox support may raise the priority of a fix.

0 Kudos
r.blake
Frequent Member
Frequent Member

How to find out which values can be used in text / enum variables?

So I set up a simple python script found in another thread here to test how does passing various variables work, which looks like this:

import sys
f = open(sys.argv[2]+"/FFSetVariables.txt","a+")
f.write ("$FFwfJob.printQuantity$=150")
f.close()

And it works, correct quantity does appear on a job sent to printer.

However, trying to pass a stock name fails.

Example #1:

f.write ("$FFwfJob.mainStockName$=Sticotac")

with this the job passes, but stock name isn't being set on the printer

Example #2:

f.write ("$FFPaper Stock Name$=Sticotac")

with this the job just fails, with no reason as for why specified anywhere

Now, if I take exact same stock name and pass it via csv file via MAX setup with second column set to stock name, like this:

"sample.pdf"|Sticotac

then suddenly it works, and correct stock is set on the printer.

So, why passing a stock name variable through a python script doesn't work?

And how can I find out which variables can be used at all for a particular printer, and which values will work?

For example, if I want to set color mode (CMYK or Grayscale) or duplex mode (off/open to left/open to top), how should it be done?

There are variables $FFwfJob.sidesImaged$ and $FFwfjob.color$, but again there is no mention of what values they accept and no mention of what $FFwfjob.color$ corresponds to on the printer exactly.

Tags (1)
0 Kudos