Functions not working (0.8.2.0)

Here you can submit bugreports
Post Reply
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Functions not working (0.8.2.0)

Post by Soffort »

At first, thank you for REST API. It was very useful! :)

After update, I had many issues with functions in my workflows. I created new FFAStrans setup in other machine, create new workflow and had same problem. I can't populate any variables from functions and can't conditional any functions.

Creating debug node for writing variables in text files shows some info from executing functions, but as I understand, it is some internal calls, and not a result of function execution.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Functions not working (0.8.2.0)

Post by admin »

Hi Suffort,

What functions are you using? I have not tested ALL functions after the update but the ones I have tested seem to work.

-steinar
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: Functions not working (0.8.2.0)

Post by Soffort »

I need $exists() function as most used. When file monitored, it will follow to custom script node and run my external program. This program transliterate file name and rename file. After that, conditional node check $exists("%s_original_full%")=1 and if success, continue workflow, because original file was not need translit. If conditional unsuccess, system understand that file is transliterated right now, %s_source% can be incorrect for future usage and conditional node dispel job. On next iteration already transliterated file is monitored. This steps needed for avoid errors in log. Right now conditional node always failure if I use $exists().

Another solution is insert transliteration just after delivery node and before deletion. But it raises error "Cannot locate source"
- On script node, if in script node "Set %s_source% variable to" is empty. "Omit exit code" option in script node not working.
- On delete node, if in script node "Set %s_source% variable to" is not empty and set to %s_original_full%. "Omit exit code" option in delete node not working.
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: Functions not working (0.8.2.0)

Post by Soffort »

More info.
I create simple workflow with watch. Populate 3 user variables: %s_debug%=%s_original_full%, %s_debug_2%=$exists("%s_original_full%"), %s_debug_3%=$reverse("%s_original_full%"). Create text file node with content
Debug: %s_debug%
Debug 2: %s_debug_2%
Debug 3: %s_debug_3%

In text file I found:
Debug: D:\Soffort\Video\!in\master.mkv
Debug 2:
Debug 3:

I am export workflow and import in 0.8.1.0 FFAStrans. And now:
Debug: D:\Soffort\Video\!in\master.mkv
Debug 2: 1
Debug 3: vkm.retsam\ni!\oediV\troffoS\:D

It's Ok in 0.8.1.0, but broken in 0.8.2.0
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Functions not working (0.8.2.0)

Post by admin »

Thanks for reporting, Suffort! :-) It's fixed and a patch is on the way.

-steinar
Post Reply