cancel
Showing results for 
Search instead for 
Did you mean: 

Custom class types

msandoz
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

1. No I don't think so. But you could easily do this yourself.
2. Would it be a good alternative for you to use attachments? You can add an attachment or a URL to a process instance using the TaskService.

Best regards,