custom process step
hi
i'm trying create proces flow uses custom process step , i'm facing problems:
- when @ sample in documentation (http://dev.day.com/docs/en/cq/current/developing/developing_workflows.html#defining%20a%20 process%20step%20with%20a%20java%20class), see put @component, @service, ... outside comments area, when keep getting following error
"only type can imported. org.apache.felix.scr.annotations.component resolves package storefile.java /ws08-idatest_4502_00cc1fe5-0060-4282-9490-85140078d3f5/webcontent/apps/idamf/src/store/s rc/main/java/com/idamf/io/store line 4"
or
component cannot resolved type storefile.java /ws08-idatest_4502_00cc1fe5-0060-4282-9490-85140078d3f5/webcontent/apps/idamf/src/store/s rc/main/java/com/idamf/io/store line 25" "
- when implement wotkflowprocess, cannot seem code work in 'process step' step in workflow. class created, not show in list of selectable processes. when implement javaprocessext, show in list.
- when create dialog custom process step, not able edit in workflow. not able set arguments process step
my workflowprocess implementation in storefile.java, simple code outputting lines log.
/**
*
* @author
*
*
@component
@service
@properties({
@property(name=constants.service_description, value="a sample process step try , store file file system"),
@property(name=constants.service_vendor, value="idamf"),
@property(name="process.label", value="store file")
})
*/
public class storefile implements workflowprocess {
protected final logger log = loggerfactory.getlogger(storefile.class);
public void execute(workitem arg0, workflowsession arg1, metadatamap arg2)
throws workflowexception {
// todo auto-generated method stub
log.info("************** executing store file ********************");
}
}
anybody have idea goes wrong?
thanks®ards
please make sure .bnd file have 2 line[1]. after right click on .bnd file , click "build bundle" under "tool" option.now, should not error while building bundle custom workflow step using sample code.
[1]
import-package: *
private-package: *
More discussions in Archived Spaces
adobe
Comments
Post a Comment