Compare commits

..

2 Commits

Author SHA1 Message Date
be278726a7 added task listener integration test 2025-03-20 16:59:52 -04:00
3535b9f419 fix sigdoc issue with TaskListener 2025-03-20 16:36:06 -04:00
5 changed files with 44 additions and 14 deletions

21
pom.xml
View File

@ -147,7 +147,7 @@
</build>
</profile>
<profile>
<id>central-release</id>
<id>ossrh-release</id>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
@ -189,14 +189,21 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<extensions>true</extensions>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
<executions>
<execution>
<id>ossrh-deploy</id>
<phase>deploy</phase>
<goals><goal>deploy</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -50,8 +50,7 @@
<version>@pom.version@</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<destDir>apidocs</destDir>
<reportOutputDirectory>${basedir}</reportOutputDirectory>
<outputDirectory>${basedir}</outputDirectory>
<additionalOptions>
<additionalOption>--title 'Example Title'</additionalOption>
<additionalOption>--apiName '${project.name}'</additionalOption>

View File

@ -0,0 +1,24 @@
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;
/**
* This is an example comment for the class TestNamedTaskListenerBean.
*
* Here is a second line that happens
* to span multiple lines. This class does not have an author.
*/
@Component("testTaskListener")
public class TestNamedTaskListenerBean implements TaskListener {
/**
* This is an example method comment.
*
* @param task A delegate task for access to the activity and process instance.
*/
@Override
public void notify(DelegateTask task) {
}
}

View File

@ -135,7 +135,7 @@ class ActivitiDocFilter {
}
}
this.logger.info("delegates: {}", delegateMethodElements);
this.logger.info("delegates: {}: {}", beanId, delegateMethodElements);
// getAllMembers() will get inherited methods
for (Element memberElement : this.docenv.getElementUtils().getAllMembers(classElement)) {

View File

@ -30,11 +30,11 @@ ${r"${"}${beanId}${r"}"}
<#if delegateMethod?? || executionListenerMethod?? || taskListenerMethod??>
<#assign taskUses = [] />
<#if delegateMethod??><#assign taskUses = taskUses + ["**Service Task**"] /></#if>
<#if executionListenerMethod??><#assign taskUses = taskUses + ["**Execution Listener**"] /></#if>
<#if taskListenerMethod??><#assign taskUses = taskUses + ["**Task Listener**"] /></#if>
<#if delegateMethod??><#assign taskUses = taskUses + ["**Service Task**"] /><#assign _delegateMethod = delegateMethod /></#if>
<#if executionListenerMethod??><#assign taskUses = taskUses + ["**Execution Listener**"] /><#assign _delegateMethod = executionListenerMethod /></#if>
<#if taskListenerMethod??><#assign taskUses = taskUses + ["**Task Listener**"] /><#assign _delegateMethod = taskListenerMethod /></#if>
You may use it in a ${taskUses?join(" or ")}.
<@sigdoc sig=delegateMethod showParams=false/>
<@sigdoc sig=_delegateMethod showParams=false/>
</#if></#if><#if (methods?size > 0)>
## Expression Uses