01: package org.emforge.jbpm;
02:
03: import org.apache.commons.collections.Transformer;
04: import org.emforge.xfer.PriorityTO;
05:
06: /** Class for transforming priority value to PriorityTO
07: *
08: */
09: public class PriorityTransformer implements Transformer {
10:
11: public PriorityTO transform(Object i_input) {
12: Integer priorityValue = (Integer) i_input;
13:
14: return PriorityTO.getPriority(priorityValue);
15: }
16: }
|