AnsweredAssumed Answered

Custom class types

Question asked by msandoz on Dec 4, 2011
Latest reply on Dec 5, 2011 by trademak
I'd like to do two things and wanted to know if they can be done pretty easily.

First, I'd know if variables are pre-evaluated by my custom classes - can i just type in ${varname} into a custom field in the property editor and have it evaluated for me?

Second, I often have to work with resources. In one case, it might be some kind of resource stored with the BAR - something like an excel spreadsheet or velocity template. Other times I need to deal with an external resource such as a file object. What's the best way to go about this? Should I just use a string in the custom editor and convert it to a file for later use?

an example - cstA produces a file on the filesystem (or a resource stored in the activiti db?) and then cstB picks up the file, processes it and then sends it to an email node which uses it as an attachment.

ideally i'd like to be able to take file or resource type variables and use them between tasks.

One thing that should help with this is something i read in the docs - 

String ProcessDefinition.getDeploymentId() and InputStream RepositoryService.getResourceAsStream(String deploymentId, String resourceName);

how should i best use that from a java delegate and how do i do the same thing with instance variables?