Class ActivityBasedTaskHandler

  • All Implemented Interfaces:
    TaskHandler

    @Component
    public class ActivityBasedTaskHandler
    extends Object
    implements TaskHandler
    Handler for tasks that are based on activity (activities) definition.
    • Constructor Detail

      • ActivityBasedTaskHandler

        public ActivityBasedTaskHandler()
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • destroy

        @PreDestroy
        public void destroy()
      • getArchetypeOid

        @Nullable
        public @Nullable String getArchetypeOid​(@Nullable
                                                @Nullable String handlerUri)
        Description copied from interface: TaskHandler
        TODO Decide on the fate of this method.
        Specified by:
        getArchetypeOid in interface TaskHandler
        Parameters:
        handlerUri - One the handler URIs supported by this handler.
        Returns:
        Archetype OID for tasks that are powered by this handler and have the specified handler URI.
      • heartbeat

        public Long heartbeat​(Task task)
        TODO decide what to do with this method.
        Specified by:
        heartbeat in interface TaskHandler
      • refreshStatus

        public void refreshStatus​(Task task)
        TODO decide what to do with this method.
        Specified by:
        refreshStatus in interface TaskHandler
      • registerLegacyHandlerUri

        public void registerLegacyHandlerUri​(String handlerUri)
      • unregisterLegacyHandlerUri

        public void unregisterLegacyHandlerUri​(String handlerUri)
      • setAvoidAutoAssigningArchetypes

        public void setAvoidAutoAssigningArchetypes​(boolean avoidAutoAssigningArchetypes)