Perl PostProcessor Script Failing - did not return the correct value
Created the simplest perl script to be used as a PostProcesser script in a WFM on Linux. All I have in the script is a list of possible input paramas the WFM sends the script so I know what I'm getting, if anything. Ultimately all I want to do is use a value from the instantiation form to be set as an extended attribute on all the initially attached files of the job. But first I need to figure out what values the processor sends me, so this is my script:
!/foo/bar/TShome/TeamSite/iw-perl/bin/iwperl
use TeamSite::WFtask;
use TeamSite::WFworkflow;
my ($a,$b,$c,$d,$e,$f) = @ARGV;
open LOG,">/opt/applog/Custom/wcm_development_post_instantiation.log";
print LOG "a: $a\n";
print LOG "b: $b\n";
print LOG "c: $c\n";
print LOG "d: $d\n";
print LOG "e: $e\n";
print LOG "f: $f\n";
close LOG;
return 1;
I am calling the script like this in the PostProcessor section of the WFM:
/foo/bar/TShome/TeamSite/iw-perl/bin/iwperl /foo/bar/TShome/TeamSite/httpd/iw-bin/wcm_development_post_instantiation.ipl
After I try to start the job after filling out the instantiation form, it throws this error. What the heck does it want as a return value from the script? The docs are useless. I know what it is if it was a Java class, but I don't want to write Java for this.
com.interwoven.modeler.transformer.ModelTransformer () - transformModel error:
com.interwoven.modeler.common.exceptions.ModelerException: Workflow Command [Pre/Post] did not return correct value. Correct the error.
at com.interwoven.modeler.transformer.PrePostCommandTransformer.executePostprocessorCommands(PrePostCommandTransformer.java:187)
at com.interwoven.modeler.transformer.ModelTransformer.transformModel(ModelTransformer.java:165)
at com.interwoven.modeler.transformer.ModelTransformer.transformModel(ModelTransformer.java:4818)
Comments
-
It does write to my log file and it's sending me nothing, so maybe it's just stupid to use perl for a PostProcessor script. I can just use an externalTask as the first task in the workflow to do what I need to do. It just seemed simpler to do it with the PostProcessor - this is how we learn.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.