cancel
Showing results for 
Search instead for 
Did you mean: 
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: Process Number Variable Calculations

I see the problem. I was able to avoid the error by changing the equation order. For example - 6 + $FFvart$  (instead of $FFvart$  - 6  ) . Not a great solution but  it worked for me.

0 Kudos
barwapk
Valued Member
Valued Member

Re: Process Number Variable Calculations

How to add a picture on this forum?

This is Custom Field, and its Type is Number

 

screens below

 

http://www.barwa.pl/site_media/img/screen1.png 

http://www.barwa.pl/site_media/img/screen2.png 

http://www.barwa.pl/site_media/img/screen3.png  

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

Re: Process Number Variable Calculations

Is the variable a standard FFCore variable (e.g., described in HELP)? Can provide me the name of the variable? Depending on variable type (e.g., string, enum, number, dimension), you may be forming a non-supported outcome with your formula. In what node are you applying the formula? Is the error posted on the job management GUI?

Unfortuneately your attached pngs are clipped. I do not understand how the formula is designated or the error message.

0 Kudos
barwapk
Valued Member
Valued Member

Re: Process Number Variable Calculations

this is in Polish "określone rzutowanie jest nieprawidłowe", it means "the specified cast is not valid"

http://www.barwa.pl/site_media/img/screen1.png

http://www.barwa.pl/site_media/img/screen2.png

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

Re: Process Number Variable Calculations

What do you mean by not working? Processing fails? You do not obtain the result you expect? I am concerned that your formula could result in a negative number, which may make no sense for the calculated value.

0 Kudos
barwapk
Valued Member
Valued Member

Re: Process Number Variable Calculations

Sorry my mystake there is $ and not working.

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

Re: Process Number Variable Calculations

A "$" is needed at the end of the variable name -- not a "&". $FFvar$-6 should work.

0 Kudos
barwapk
Valued Member
Valued Member

Re: Process Number Variable Calculations

I have problems with operations in calculated value (in resize node), 

$FFvar&-6 doesnt work

$FFvar$+6 works

Can someone help me?

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

Re: Process Number Variable Calculations

Would your example work as follows:

$FFvar1$ + (2*FFvar2$).

If the order of operations is strictly followed the "2" will be added to $FFvar1$ and then the sum multiplied by $FFvar2$ . This is another way of represented what you may be obtaining ($FFvar1$ + 2) * ($FFvar2$)

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

Re: Process Number Variable Calculations

The following is the documentation in Help:

Process Number Variable Calculations

Number settings may support Calculated values as part of their configuration. Calculated values may be defined using arithmetic formulas. The following operations are supported:
•  Addition

•  Subtraction

•  Multiplication

•  Division

•  Parentheses to change the order of operations

In addition, the formula may also include other Process Variables.
Example: ($FFwfdoc.pages$ / 2) + 1
The Default Value Setting defines a fixed value that will be used if the selected variable is undefined for a given job.

0 Kudos