01-08-2013 08:12 PM
<serviceTask id="servicetask1" name="Test Concat" activiti:extensionId="com.foo.extensions.test.TestConcatTask"></serviceTask>
<serviceTask id="servicetask1" name="Test Concat" activiti:extensionId="com.foo.extensions.test.TestConcatTask" activiti:class="com.foo.tasks.test.TestConcatTask"></serviceTask>
package com.foo.extensions.test;
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;
@Runtime(delegationClass = "com.foo.extensions.test.TestConcatTask")
public class TestConcatTask extends AbstractCustomServiceTask
{
@Property(type = PropertyType.TEXT, displayName = "Arg 1", required = true, order = 1)
@SuppressWarnings("unused")
private String arg1;
@Property(type = PropertyType.TEXT, displayName = "Arg 2", required = true, order = 2)
@SuppressWarnings("unused")
private String arg2;
/**
* Returns the name of this Custom Service Task.
*
* @return The name of this Custom Service Task.
*/
@Override
public String getName() {
return "Test Concat";
}
/**
* Returns the name of the Palette Drawer in Activiti Designer
*
* @return The name of the Palette Drawer in Activiti Designer
*/
@Override
public String contributeToPaletteDrawer() {
return "TEST";
}
@Override
public String getSmallIconPath() {
return "icons/coins.png";
}
}
01-09-2013 05:53 AM
04-17-2013 01:05 PM
04-17-2013 01:10 PM
04-17-2013 01:19 PM
04-18-2013 05:39 AM
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.