01-13-2012 02:36 PM
package edu.mayo.mi3c.xb3.designer;
import org.activiti.designer.integration.servicetask.AbstractCustomServiceTask;
import org.activiti.designer.integration.servicetask.PropertyType;
import org.activiti.designer.integration.servicetask.annotation.Help;
import org.activiti.designer.integration.servicetask.annotation.Property;
import org.activiti.designer.integration.servicetask.annotation.Runtime;
@DeweyTask
@SuppressWarnings("unused")
@Runtime(delegationClass = "edu.mayo.mi3c.xb3.task.ClassifySeriesTask")
@Help(displayHelpShort = "Classify a series", displayHelpLong = "Assign tags to the BO associated with this series")
public class ClassifySeriesItem extends AbstractCustomServiceTask {
@Property(type = PropertyType.TEXT, displayName = "Extra Tags", required = false, defaultValue = "")
@Help(displayHelpShort = "Tags", displayHelpLong = "Comma-separated list of extra tags to add to the BO")
private String tags;
@Property(type = PropertyType.BOOLEAN_CHOICE, displayName = "Wait for completion", required = true, defaultValue = "true")
@Help(displayHelpShort = "Wait for task completion", displayHelpLong = "If checked, the workflow item does not complete until DEWEY executes the required functionality. If unchecked, execution immediately continues and the next step in the workflow is assumed to be a 'Receive' task")
private Boolean synchronous;
@Override
public String getSmallIconPath() {
return "icons/folder_fill_16x16.png";
}
@Override
public String getName() {
return "Classify Series";
}
}
package edu.mayo.mi3c.xb3.designer;
import org.activiti.designer.integration.servicetask.AbstractCustomServiceTask;
import org.activiti.designer.integration.servicetask.PropertyType;
import org.activiti.designer.integration.servicetask.annotation.Help;
import org.activiti.designer.integration.servicetask.annotation.Property;
import org.activiti.designer.integration.servicetask.annotation.Runtime;
@DeweyTask
@SuppressWarnings("unused")
@Runtime(delegationClass = "edu.mayo.mi3c.xb3.task.ClassifySeriesTask")
@Help(displayHelpShort = "Classify a series", displayHelpLong = "Assign tags to the BO associated with this series")
public class ClassifySeriesItem extends AbstractCustomServiceTask {
@Property(type = PropertyType.BOOLEAN_CHOICE, displayName = "Wait for completion", required = true, defaultValue = "true")
@Help(displayHelpShort = "Wait for task completion", displayHelpLong = "If checked, the workflow item does not complete until DEWEY executes the required functionality. If unchecked, execution immediately continues and the next step in the workflow is assumed to be a 'Receive' task")
private Boolean synchronous;
@Override
public String getSmallIconPath() {
return "icons/folder_fill_16x16.png";
}
@Override
public String getName() {
return "Classify Series";
}
}
07-25-2012 03:45 AM
07-25-2012 11:34 AM
07-25-2012 01:08 PM
07-26-2012 01:39 AM
Sure, you could extend Designer to support an additional type and render a file chooser in SWT. I guess the obvious question would be what you want to do file the file itself. You'd probably have a file path in the BPMN, but what does that actually do for you?
07-26-2012 01:56 PM
07-27-2012 01:15 AM
The exception you're getting has to do with the availability of image resources in the extension file, I suspect. I still don't quite get your requirement. Are you trying to send an email with attachment by letting the user upload a document in Activiti Explorer? What exactly do you want to do by extending Designer?
07-28-2012 06:55 AM
07-30-2012 02:55 AM
07-30-2012 04:18 AM
08-03-2012 02:12 AM
Sorry, my mistake…
You need to overwrite the "getSmallIconPath()"-method everytime. Without an image there will be that exception, it isn´t possible to make a custom-task without an icon packed within the jar.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.