cancel
Showing results for 
Search instead for 
Did you mean: 

id and name field missing in CustomServiceTask

m2spring
Champ in-the-making
Champ in-the-making
Using Activiti Designer trunk I just created a CustomServiceTask using the AcmeMoneyTask example from the user guid.
http://www.activiti.org/userguide/index.html#eclipseDesignerCustomizingPalette

Problem: The resulting properties editor does no longer show the Id and Name fields in the Main properties tab:
[img]http://springdot.org/files/HZBkMVVMSHSr76rQ3I0Z7r6P5tttuyjbJso7FKNgGXSaR8LIWo/20120829-1528.png[/img]

Is this a known bug?

-Max


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 = "org.acme.runtime.AcmeMoneyJavaDelegation")
@Help(displayHelpShort = "Creates a new account", displayHelpLong = "Creates a new account using the account number specified")
public class AcmeMoneyTask extends AbstractCustomServiceTask {

  private static final String HELP_ACCOUNT_NUMBER_LONG = "Provide a number that is suitable as an account number.";

  @Property(type = PropertyType.TEXT, displayName = "Account Number", required = true)
  @Help(displayHelpShort = "Provide an account number", displayHelpLong = HELP_ACCOUNT_NUMBER_LONG)
  private String accountNumber;

  @Property(type = PropertyType.MULTILINE_TEXT, displayName = "Comments")
  @Help(displayHelpShort = "Provide comments", displayHelpLong = "You can add comments to the node to provide a brief description.")
  private String comments;

  /*
   * (non-Javadoc)
   *
   * @see org.activiti.designer.integration.servicetask.AbstractCustomServiceTask #contributeToPaletteDrawer()
   */
  @Override
  public String contributeToPaletteDrawer() {
    return "Acme Corporation";
  }

  @Override
  public String getName() {
    return "Money node";
  }

  /*
   * (non-Javadoc)
   *
   * @see org.activiti.designer.integration.servicetask.AbstractCustomServiceTask #getSmallIconPath()
   */
  @Override
  public String getSmallIconPath() {
    return "coins.png";
  }
}
1 REPLY 1

m2spring
Champ in-the-making
Champ in-the-making
Created a Jira for this problem: http://jira.codehaus.org/browse/ACT-1363
-Max