cancel
Showing results for 
Search instead for 
Did you mean: 
pmaze
FreeFlow User

New external variable updated in workflow with external process doesn't work

Jump to solution

Hello,

I understand that new external variables on external process allows you to get variable updated in workflow.

For instance, I have developed a little C# program that contains 3 args

args[0]=$FFin$

args[1]=$FFout$ (scripts directory)

args[2]=$FFVariableExterne$

The last variable has also been created on MAX.

In my cvs,

VariableExterne=Value1

When the file pass to external process, I would like VariableExterne set to value set in my program.

In the log file I create, the args[2] is updated, but when I look at my variable in my jobname in save destination, it keeps the MAX value.

Same result with the ExternalProcessSample.bat delivered with FFCore 6.1 in scripts directory...

Do I misunderstand something.

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

Re: New external variable updated in workflow with external process doesn't work

Jump to solution

I assume you are trying to change the MAX variable value. The attached (the ffc within the zip) is an example of that.

pmaze
FreeFlow User

Re: New external variable updated in workflow with external process doesn't work

Jump to solution

Hi David,

I test it and come back to you.

Thanks !

0 Kudos
pmaze
FreeFlow User

Re: New external variable updated in workflow with external process doesn't work

Jump to solution

OK David, understood :)

The args[2] (90) is affected to the numtochange variable...

Many thanks for this sample.

BUT if I go further, my goal is to modify args[2] inside the program and update it after the external process.

In your script, that means $FFnumtochange$.value=10, then I retrieve this value in the variable.

In that way, variable is not updated...

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

Re: New external variable updated in workflow with external process doesn't work

Jump to solution

Try the attached -- I think this is an example of what you trying to accomplish.

0 Kudos