Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Passing Dynamic OD Variable in WFM using java class
kumardas
Hi,
I have a problem in Deploy Task in my WFM. I am using FileList Deployment. In my deployment configuration file, i need to pass dynamic OD variable for filePath attribute as shown below. I have tried in all the ways, setting a configurable OD Variable (in deploy task) and setting up a value for this OD Variable in one of my java class file, before the deploy task. But its not working for me, if i pass the hard coded file path, its working perfectly. If i pass the value from the java class file dynamically, its not working.
=========================================================
source
fileSystem
filelist area="Y:\default\main\test\WORKAREA\wrkara" filePath="$txtfile^"
pathSpecification
path name="."/
/pathSpecification
/filelist
/fileSystem
/source
=========================================================
Can any one suggest me, what is that solution for this ? Thanks in advance...
Find more posts tagged with
Comments
Adam Stoller
I think we would need to see the java code in question. I assume you are talking about custom code to replace the default class used for performing deployments - yes?
kumardas
Hi,
For Deploy task i am not using any java class. Just before this deploy task i have a external task (uses java class). In this external task i am retrieving the deploy task with the name of the task, and then i am setting variables - values for the deploy task. Once the external executed, then the flow goes to deploy task and then continues......
for(int k=0; k if(tasks.getName().equals("DeployTaskName")) {
tasks.setVariable("odDeploymentName",deployfile);
tasks.setVariable("filelist",fileListFileName);
}
}
Now with the above piece of code it is working fine. The variables like odDeploymentName, filelist and so on...are already existing variables inside the deploytask, we just need to set the values for these variabels, if we need to set some dynamic value then we need to set the values in java class like above code, and then access them inside the deploy configuration file. Now it is working for me.