cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Service Tasks' name

racadent
Champ in-the-making
Champ in-the-making
We are using Custom Java Service Tasks in eclipse designer as described here:

http://activiti.org/userguide/#eclipseDesignerCustomizingPalette

What we want to achieve is that the name of the "shape" depends on task's field and user input.

So, now you can set the name if you override superclass method:

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

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


but what we want is that initial name is accountNumber and if user inputs some value in the accountNumber field, the shape will automatically change its name to that value.

Something like this:


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

  @Override
  public String getName() {
    return accountNumber; ///????
  }
1 REPLY 1

racadent
Champ in-the-making
Champ in-the-making
Any help plz???!!!