AnsweredAssumed Answered

Changing the default task id

Question asked by rashmis on Jan 20, 2011
Hi,

I have created the user-defined node of type 'Money Node' (as in User guide example). The Money node gets its id as "servicetask<n>" , n being the updated service task id for current instance of Activiti. I want to make this id as "subprocess<n>" instead of "servicetask<n>", which will be the next sub process id available. How can i do this ? I saw in the AbstractCustomServiceTask.java that the id gets generated by the method:

public final String getId() {
    return getClass().getCanonicalName();
  }

I cannot override this api as its final. So how can I work around this ? Any ideas please..  8-)

Outcomes