Git Product home page Git Product logo

activiti / activiti Goto Github PK

View Code? Open in Web Editor NEW
9.9K 630.0 6.9K 119.65 MB

Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.

Home Page: https://www.activiti.org

License: Apache License 2.0

HTML 0.17% Java 99.77% SQLPL 0.06%
java bpm spring cloud microservices business-process activiti product-activiti bpmn hxps

activiti's Introduction

Activiti

Join Us in Gitter CI Codacy Badge ASL 2.0 CLA security status stability status licensing status

Homepage: http://activiti.org

Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.

**NOTE: We moved to the master branch all the content of the development branch that we were using to design and code the next major version of the project. If you want to contribute with version 6.x please look at the 6.x branch.**

If you want to read more about our Repositories structure you can read our GitBook.

Configuring IntelliJ

  • Force language level 21, to fail-fast when (accidentally) using features available only in newer Java versions.

    • Open menu File, menu item Project Structure
    • Click list item Modules, for each module, tab Sources, combobox Language level should be automatically set to 21 ...
  • Avoid that changes in some resources are ignored in the next run/debug (and you are forced to use mvn)

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Compiler, textfield Resource patterns: change to !?*.java (remove other content)
  • Avoid a StackOverflowError when building

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Compiler, tree item Java Compiler, textfield Additional command line parameters
    • Add -J-Xss1024k
  • Recommended code style: use the Google Java Style Guide with editorconfig

    • Download the IntelliJ code style xml from: [https://google.github.io/styleguide/intellij-java-google-style.xml]
    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Code Style, click cogwheel and select Import scheme, then IntelliJ code style xml
    • Browse where you downloaded the xml and open it. Check that GoogleStyle is the active scheme.
      • Note: IntelliJ IDEA doesn't format your code automatically. You have to press Ctrl+Alt+L keyboard combination to trigger auto formatting when coding is done.
    • There's an .editorconfig what has definition for indents, file encoding, line endings.
    • If you disable it, you need to set the file encoding and number of spaces correctly manually.
    • Eclipse code style xml: [https://google.github.io/styleguide/eclipse-java-google-style.xml]
    • Eclipse needs editorconfig-eclipse plugin in order to support EditorConfig files.
  • Set manually the correct file encoding (UTF-8 except for properties files) and end-of-line characters (unix):

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Code Style, tree item General
      • Combobox Line separator (for new files): Unix
    • Click tree item File Encodings
      • Combobox Global Encoding: UTF-8
      • Combobox Default encoding for properties files: ISO-8859-1
        • Note: normal i18n properties files must be in ISO-8859-1 as specified by the java ResourceBundle contract.
  • Set manually the correct number of spaces when pressing tab:

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Code Style, tree item General
    • Click tab Java
      • Checkbox Use tab character: off
      • Textfield Tab size: 4
      • Textfield Indent: 4
      • Textfield Continuation indent: 8
    • Open tab XML
      • Checkbox Use tab character: off
      • Textfield Tab size: 2
      • Textfield Indent: 2
      • Textfield Continuation indent: 4
  • Set the correct file headers (do not include @author or a meaningless javadoc):

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item File templates, tab Includes, list item File Header
    • Remove the line @author Your Name.
      • We do not accept @author lines in source files, see FAQ below.
    • Remove the entire javadoc as automatically templated data is meaningless.
  • Set the correct license header

    • Open menu File, menu item Settings or menu IntelliJ IDEA, menu item Preferences... if on a Mac
    • Click tree item Copyright, tree item Copyright profiles
    • Click tree item Copyright
      • Combobox Default project copyright: Alfresco Software

FAQ

  • Why do you not accept @author lines in your source code?

    • Because the author tags in the java files are a maintenance nightmare

      • A large percentage is wrong, incomplete or inaccurate.
      • Most of the time, it only contains the original author. Many files are completely refactored/expanded by other authors.
      • Git is accurate, that is the canonical source to find the correct author.
    • Because the author tags promote code ownership, which is bad in the long run.

      • If people work on a piece they perceive as being owned by someone else, they tend to:
        • only fix what they are assigned to fix, instead of everything that's broken
        • discard responsibility if that code doesn't work properly
        • be scared of stepping on the feet of the owner.
    • Credit to the authors is given:

Development commands

Add License header

To format files with the required license:

mvn license:format

Checkstyle

To check if your code style respect all the rules:

mvn checkstyle:check -DskipCheckstyle=false

Site

To generate the maven site:

mvn clean site site:stage

the site will be generated at: target/staging/index.html

CI/CD

Running on GH Actions.

For Dependabot PRs to be validated by CI, the label "CI" should be added to the PR.

Requires the following secrets to be set:

Name Description
BOT_GITHUB_TOKEN Token to launch other builds on GH
BOT_GITHUB_USERNAME Username to issue propagation PRs
NEXUS_USERNAME Internal Maven repository username
NEXUS_PASSWORD Internal Maven repository password
SLACK_NOTIFICATION_BOT_TOKEN Token to notify slack on failure

activiti's People

Contributors

alfresco-build avatar almerico avatar balsarori avatar cti777 avatar daisuke-yoshimoto avatar dependabot-preview[bot] avatar dependabot[bot] avatar erdemedeiros avatar fcorti avatar frederikheremans avatar henryyan avatar igdianov avatar jbarrez avatar lourdupranay avatar marcus-nl avatar martin-grofcik avatar mergify[bot] avatar miguelruizdev avatar mteodori avatar pow-devops2020 avatar robfrank avatar robhafner avatar ryandawsonuk avatar salaboy avatar smirzai avatar tiesebarrell avatar tijsrademakers avatar tombaeyens avatar vasiledirla avatar yvoswillens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

activiti's Issues

NPE while deploying process with message events

If you author a process in Activiti Explorer with any reference to a message event, a subsequent deploy of that process will fail due to an NPE.

It looks like there are two problems -

  1. The code that translates between the model JSON and the BPMN XML does not propagate the 'targetNamespace' attribute into the destination XML.
  2. The code that generates messages in the XML does not check to see if targetNamespace is null, thus causing an NPE during export.

Wrong OSGi manifest entry in activiti-engine 5.14

When I try to deploy the engine bundle into my OSGI environment (Karaf 2.3.1) with Apache Felix under the hood the deployment fail.
I checked the exception and it seems like that the manifest contain a duplicated import package entry for org.activiti.osgi.

Caused by: org.osgi.framework.BundleException: Duplicate import: org.activiti.osgi
at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:342)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.util.manifestparser.ManifestParser.(ManifestParser.java:163)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleRevisionImpl.(BundleRevisionImpl.java:114)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1196)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.(BundleImpl.java:95)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.Felix.installBundle(Felix.java:2732)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[24:org.apache.karaf.shell.osgi:2.3.1]
... 11 more

Incompatible ISO-8601 in REST?

The 5.13 user guide says:

Parameter representing a date value. Use the ISO-8601 date-format (see ISO-8601 on wikipedia) using both time and date-components (eg. 2013-04-03T23:45Z).

However, the response I am getting back from GET repository/deployments is (excess trimmed):

{
  "data": [ {"deploymentTime": "2013-09-28T15:35:11UTC", } ],
}

but UTC does not seem to be a valid 8601 designator - it should be "Z" for UTC. I'm no java expert, but it looks like this might be caused by RequestUtil.java:28:

private static final SimpleDateFormat longDateFormat
  = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssz");

Per the java docs, should this last designator be Z?

Activating/Suspending processDef throws Exception

Activating/Suspending processDef with process instances throws exception if a process instance is already in the same state.

Calling RepositoryService activateProcessDefinitionXX and suspendProcessDefinitionXX ie calling
repositoryService.suspendProcessDefinitionById("myProcDefId", true, null);
will throw an Exception if there is a process instance of "myProcDefId" already suspended (see below).

org.activiti.engine.ActivitiException: Cannot set suspension state 'suspended' for ProcessInstance[1674]': already in state 'suspended'.
at org.activiti.engine.impl.persistence.entity.SuspensionState$SuspensionStateUtil.setSuspensionState(SuspensionState.java:86)
at org.activiti.engine.impl.cmd.AbstractSetProcessInstanceStateCmd.execute(AbstractSetProcessInstanceStateCmd.java:57)
at org.activiti.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd.changeProcessDefinitionState(AbstractSetProcessDefinitionStateCmd.java:153)
at org.activiti.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd.execute(AbstractSetProcessDefinitionStateCmd.java:72)
at org.activiti.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd.execute(AbstractSetProcessDefinitionStateCmd.java:1)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.RepositoryServiceImpl.suspendProcessDefinitionById(RepositoryServiceImpl.java:119)

NPE when attempting to add a user to a group through the activiti-explorer interface

When attempting to add a group to a user in activiti explorer (using the "+" button for groups while viewing a user), is causing a NullPointerException to be thrown.

We have narrowed down the issue to being related to the number of groups that are stored in activiti. If more then 10, it appears to start throwing this NPE (in certain cases).

Steps To Reproduce:
- Create 13 new groups in activiti-explorer.
- Create a new user that isn't associated to any groups.
- Click the "+" button while viewing the user to add them to a new group. (Here you will get a red warning box that says "Null").

Looking through the code, within the GroupSelectionPopupWindow.java file. Line 79 has the following...

LazyLoadingContainer container = new LazyLoadingContainer(query, 10);

The "10" quantity that is passed into the LazyLoading Container seems to be related to the max number of groups the system will handle before failing here. In my situation I upped the quantity to 20, and everything started working fine again. Of course this is not scalable if I start adding more groups to my system and reach the 20 limit.


Stacktrace of exception:

com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.NullPointerException
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
at com.vaadin.ui.Button.fireClick(Button.java:539)
at com.vaadin.ui.Button.changeVariables(Button.java:206)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1299)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1219)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:735)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:27)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException
at org.activiti.explorer.data.LazyLoadingContainer.getContainerProperty(LazyLoadingContainer.java:87)
at com.vaadin.ui.AbstractSelect.getContainerProperty(AbstractSelect.java:745)
at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1550)
at com.vaadin.ui.Table.addContainerProperty(Table.java:3027)
at org.activiti.explorer.ui.management.identity.GroupSelectionPopupWindow.initGroupTable(GroupSelectionPopupWindow.java:82)
at org.activiti.explorer.ui.management.identity.GroupSelectionPopupWindow.(GroupSelectionPopupWindow.java:64)
at org.activiti.explorer.ui.management.identity.UserDetailPanel$6.buttonClick(UserDetailPanel.java:363)
at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
... 29 more
activiti_group_issue

Activiti-Explorer AdminCompletedInstancesPanel displays the ids of the variables instead of their names.

In org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel
The table displays the id of an HistoricVariableUpdate instread of its name.
You have to enable history=full for the processEngineConfiguration to see the issue.
In tag 5.14 :
line 482, replace :
variableItem.getItemProperty("name").setValue(variable.getId());

with

variableItem.getItemProperty("name").setValue(variable.getVariableName());

You can also add the id if you want :

variableItem.getItemProperty("name").setValue(variable.getVariableName() + " (" + variable.getId() + ")");

Regards,

Nicolas

Deployment problem with Glassfish 3.0.1

As mentioned in this post:
http://www.java.net/forum/topic/glassfish/glassfish/deployment-problem-glassfish-v301

activiti-explorer.war cannot be deployed to glassfish out-of-the-box because of it's dependency on Tomcat's default servlet configuration.

Is it possible to re-configure Activiti so that it can be deployed as-is to glassfish?

When I deploy activiti-explorer.war to Glassfish using the admin console (http://localhost:14848/),
I get the error:

Error occurred during deployment: Exception while deploying the app [activiti-explorer] : There is no web component by the name of default here.. Please see server.log for more details.

Oracle: Historic ProcessInstances with variables invalid SQL statement

Using Acitiviti 5.13, when querying for historic process instances with variables, for example via the REST API and includeProcessVariables set to true, and using an Oracle database, an invalid SQL statement is produced and thus, an SQLSyntaxErrorException is thrown:

java.sql.SQLSyntaxErrorException: ORA-00918: column ambiguously defined

The error may exist in org/activiti/db/mapping/entity/HistoricProcessInstance.xml
The error may involve org.activiti.engine.impl.persistence.entity.HistoricProcessInstanceEntity.selectHistoricProcessInstancesWithVariablesByQueryCriteria-Inline
SQL:

select * from
( select a., ROWNUM rnum from (
select
distinct RES.
,
VAR.ID_ as VAR_ID_,
VAR.NAME_ as VAR_NAME_,
VAR.VAR_TYPE_ as VAR_TYPE_,
VAR.REV_ as VAR_REV_,
VAR.PROC_INST_ID_ as VAR_PROC_INST_ID_,
VAR.EXECUTION_ID_ as VAR_EXECUTION_ID_,
VAR.TASK_ID_ as VAR_TASK_ID_,
VAR.BYTEARRAY_ID_ as VAR_BYTEARRAY_ID_,
VAR.DOUBLE_ as VAR_DOUBLE_,
VAR.TEXT_ as VAR_TEXT_,
VAR.TEXT2_ as VAR_TEXT2_,
VAR.LONG_ as VAR_LONG_
from
ACT_HI_PROCINST RES
left outer join
ACT_HI_VARINST VAR
ON
RES.PROC_INST_ID_ = VAR.EXECUTION_ID_
and VAR.TASK_ID_ is null
WHERE
RES.END_TIME_ IS NULL
order by
PROC_INST_ID_ asc
) a
where
ROWNUM < ?
)
where rnum >= ?

BpmnXMLUtil throws Exception when convert BpmnModel to XML

Environment:
Java 1.6.0_65
Maven 3.0.3
Eclipse Juno
Activiti 5.14
MacOS

BpmnXMLUtil throws a 'Unbound namespace URI "" ' Exception, when I convert a BpmnModel to XML.
I resovled it by rewriting the implementation of the class like below:

public static void writeAttribute(Collection<List> attributes, XMLStreamWriter xtw, List blackList) throws XMLStreamException {

Map<String, String> localNamespaces = new LinkedHashMap<String, String>();
for (List<ExtensionAttribute> attributeList : attributes) {
  if (attributeList != null && !attributeList.isEmpty()) {
    for (ExtensionAttribute attribute : attributeList) {
      if ( !isBlacklisted(attribute, blackList)) {
        if (StringUtils.isBlank(attribute.getNamespacePrefix())) {
          if (StringUtils.isBlank(attribute.getNamespace()))
            xtw.writeAttribute(attribute.getName(), attribute.getValue());
          else {
            xtw.writeAttribute(attribute.getNamespace(), attribute.getName(), attribute.getValue());
          }
        } else {
          if ( !localNamespaces.containsKey(attribute.getNamespacePrefix())) {
            localNamespaces.put(attribute.getNamespacePrefix(), attribute.getNamespace());
            xtw.writeNamespace(attribute.getNamespacePrefix(), attribute.getNamespace());
          }
          xtw.writeAttribute(attribute.getNamespacePrefix(), attribute.getNamespace(),
              attribute.getName(), attribute.getValue());
        }
      }
    }
  }
}

}
The test case passed!

Then I convert the generated XML to BpmnModel, an error occured :
"Duplicate default namespace declaration."
The XML is :

Invalid OSGi manifest in 'activiti-engine-5.13.jar'

Apparently the MANIFEST.MF in the 5.13 release version of 'activiti-engine' is technically invalid; incorrect, and should not pass even the initial parsing stage. The present mechanism for build validation likely contains a less strict facility for manifest parsing -- as the manifest contains a wildcard-like entry, "org.activiti.osgi*" which should not be present.

Incidentally, I discovered this as Eclipse Virgo choked on activiti-engine-5.13.jar when I dropped it into 'repository/usr'.
The activiti-engine-5.13.jar file was just one of 42 total dependency files I was deploying; all others imported correctly.
Some snippets of the log are shown below, along with a shell command which identifies the offending line number within the manifest.

org.eclipse.virgo.util.osgi.manifest.parse.BundleManifestParseException: Error parsing bundle manifest header 
HP014E:[col 4,175]: Expected a semicolon or comma but found '*'
 .. org.activiti.engine.test.mock;version="[5.13,5.14)",org.activiti.osgi*;resolution:=optional,org.apache.commons.lang;version="[2.4,3)" ..
$ unzip -c activiti-engine-5.13.jar META-INF/MANIFEST.MF | grep -n "org.activiti.osgi"
376: .test.mock;version="[5.13,5.14)",org.activiti.osgi*;resolution:=optio
  • Notice the entry, "org.activiti.osgi*"

The jar file was pulled via Maven, from http://maven.alfresco.com/nexus/content/repositories/activiti

        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-engine</artifactId>
            <version>5.13</version>
        </dependency>

Also found a verify similar issue (which was since fixed) for Jersey; https://java.net/jira/browse/JERSEY-1426 .

Meanwhile, can anyone suggest a workaround? I know I could manually fix the manifest, but not sure just what to replace this entry with.

JSON to BPMN model conversion issue

When converting from JSON to BPMN model (which contains a FlowNode with multiple outcomes such as ExclusiveGateway or ParallelGateway) FlowNode.getOutgoingFlows() returns only one SequenceFlow. While this doesn't affect the conversion from the BPMN model to XML (maybe XML conversion relays on SequenceFlow.getSourceRef() instead of FlowNode.getOutgoingFlows()) it causes issues when converting the BPMN model back to JSON.

Webservice task cannot be imported to Model workspace

When importing an bpmn20.xml file in activiti-explorer under "Processes -> Model Workspace" information about Webservice tasks are lost.

I noticed this with a webservice task for which the implementation type attribute ("##Webservice") was lost. The initial import seems to happen ok but when "deploy" is selected from the drop dorwn box the error message "One of the attributes 'class', 'delegateExpression', 'type', 'operation', or 'expression' is mandatory on serviceTask." is thrown, because of the validation in verifyImplementation of ServiceTaskValidator.

The cause seems to be that the implementation attribute is not included in the JSON which is converted in the activiti-explorer code to the BPMModel an then sent to the engine itself.

When I import the same process using Management->Deployments it works correctly.

Error in parser model org.activiti.bpmn.model.Process

The version 5.11 of the Activiti Designer, the tag "process" comes with the attribute "targetNamespace". But this attribute is not in the xsd.

Error: cvc-complex-type.3.2.2: Attribute 'targetNamespace' is not allowed to appear in element 'process'. | myProcess.bpmn20.xml | line 3 | column 112

Cannot define custom schema for activiti on DB2

Setting

<property name="databaseTablePrefix" value="ACTIVITI." />

adds schema to sql statements. But, DbSqlSession.isTablePresent(...) needs schema separately for DatabaseMetaData.getTables() method.

Adding setting

<property name="databaseSchema" value="ACTIVITI" />

generates call

DatabaseMetaData.getTables(null,"ACTIVITI","ACTIVITI.ACT_RU_EXECUTION","TABLE")

but this returns empty resultset and activiti start fails in error..

As a work around i did

        <property name="databaseTablePrefix" value="ACTIVITI." />
        <property name="databaseSchema" value="ACTIVITI" />
        <property name="configurators">
            <list>
                <bean class="com.profitsoftware.activiti.Db2ProcessEngineConfigurator"/>
            </list>
        </property>


public class Db2ProcessEngineConfigurator implements ProcessEngineConfigurator {

  @Override
  public void configure(ProcessEngineConfigurationImpl processEngineConfiguration) {
    DbSqlSessionFactory dbSqlSessionFactory = processEngineConfiguration.getDbSqlSessionFactory(); 
    Db2SqlSessionFactory db2SqlSessionFactory = new Db2SqlSessionFactory();
    db2SqlSessionFactory.setDatabaseType(dbSqlSessionFactory.getDatabaseType());
    db2SqlSessionFactory.setIdGenerator(dbSqlSessionFactory.getIdGenerator());
    db2SqlSessionFactory.setSqlSessionFactory(dbSqlSessionFactory.getSqlSessionFactory());
    db2SqlSessionFactory.setDbIdentityUsed(dbSqlSessionFactory.isDbIdentityUsed());
    db2SqlSessionFactory.setDbHistoryUsed(dbSqlSessionFactory.isDbHistoryUsed());
    db2SqlSessionFactory.setDatabaseTablePrefix(dbSqlSessionFactory.getDatabaseTablePrefix());
    db2SqlSessionFactory.setDatabaseSchema(dbSqlSessionFactory.getDatabaseSchema());
    processEngineConfiguration.setDbSqlSessionFactory(db2SqlSessionFactory);
    processEngineConfiguration.getSessionFactories().put(db2SqlSessionFactory.getSessionType(), db2SqlSessionFactory);
  }

}


public class Db2SqlSessionFactory extends DbSqlSessionFactory {
  @Override
  public Session openSession() {
    return new DbSqlSession(this) {
      @Override
      protected String prependDatabaseTablePrefix(String tableName) {
        // We do not want prefix table with schema here..       
        return tableName;
      }
    };
  }
}

But this is really ugly...

Configurable InitialContext

ProcessEngineConfigurationImpl.initDataSource() resolves datasource from default initialcontext. It will be nice if initialcontext is configurable.

extensionElements and executionListener for process not working

I have problem with defining execution listeners for process:

<process id="executionListenersProcess">
    <extensionElements>
        <activiti:executionListener event="start" delegateExpression="${myExecutionListenerBean}"
    </extensionElements>

I'm using activiti plugin in grails with version 5.12.1 of activiti.

How can I define executionListener for start and end of process ?

I suppose that

BpmnXMLConverter().convertToBpmnModel(xmlStreamReader);

wrong read my xml file with process definition

List of Exception Management Anti-Patterns and Code Smells

Code smells are defined as symptom s in the program source code which are usually not bugs or technically incorrect but indicates a possible deeper problem. Anti-patterns are counterparts of design patterns and are defined as mistakes during software development that produces negative consequences and is ineffective or counter-productive. During program execution, error events can occur that disrupts the normal flow of the program. Programming languages provide exception handling mechanism to developers for handling errors and exception events.

I mined the source-code for automatically detecting 10 exception handling anti-patterns (https://today.java.net/article/2006/04/04/exception-handling-antipatterns). In this issue report, I list the exception handling anti-patterns and code-smells that I found in the source code. My experimental results demonstrate presence of various exception handling anti-patterns and throw light on their intensity. I believe my tool for automatic detection of anti-patterns in source code and the attached results can be useful to programmers by helping them correct mistakes and write effective code.

1 Mining Source Code for Automatically Discovering Exception Management Anti-Patterns and Code Smell

2 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\AssociationXMLConverter.java

3 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

4 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


5 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\AssociationXMLConverter.java

6 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

7 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


8 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\AssociationXMLConverter.java

9 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

10 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


11 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BaseBpmnXMLConverter.java

12 METHOD NAME : convertToBpmnModel(XMLStreamReader xtr,BpmnModel model,Process activeProcess,List activeSubProcessList) throws Exception

13 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


14 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BaseBpmnXMLConverter.java

15 METHOD NAME : convertToXML(XMLStreamWriter xtw,BaseElement baseElement,BpmnModel model) throws Exception

16 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


17 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BaseBpmnXMLConverter.java

18 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BoundaryEventXMLConverter.java

19 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

20 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


21 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BoundaryEventXMLConverter.java

22 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

23 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


24 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BoundaryEventXMLConverter.java

25 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

26 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


27 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

28 METHOD NAME : validateModel(InputStreamProvider inputStreamProvider) throws Exception

29 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


30 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

31 METHOD NAME : validateModel(XMLStreamReader xmlStreamReader) throws Exception

32 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


33 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

34 CATCH CLAUSE : catch (Exception e) {
throw new RuntimeException("Could not validate XML with BPMN 2.0 XSD",e);
}

35 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


36 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

37 CATCH CLAUSE : catch (Exception e) {
LOGGER.debug("Error reading XML document",e);
throw new XMLException("Error reading XML",e);
}

38 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


39 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

40 CATCH CLAUSE : catch (Exception e) {
LOGGER.error("Error processing BPMN document",e);
throw new XMLException("Error processing BPMN document",e);
}

41 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


42 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

43 CATCH CLAUSE : catch (Exception e) {
LOGGER.error("Error writing BPMN XML",e);
throw new XMLException("Error writing BPMN XML",e);
}

44 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


45 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

46 METHOD NAME : createXML(FlowElement flowElement,BpmnModel model,XMLStreamWriter xtw) throws Exception

47 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


48 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BpmnXMLConverter.java

49 METHOD NAME : createXML(Artifact artifact,BpmnModel model,XMLStreamWriter xtw) throws Exception

50 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


51 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BusinessRuleTaskXMLConverter.java

52 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

53 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


54 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BusinessRuleTaskXMLConverter.java

55 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

56 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


57 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BusinessRuleTaskXMLConverter.java

58 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

59 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


60 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

61 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

62 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


63 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

64 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

65 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


66 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

67 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

68 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


69 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

70 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

71 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


72 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

73 METHOD NAME : writeIOParameters(String elementName,List parameterList,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

74 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


75 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

76 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

77 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


78 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java

79 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

80 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


81 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CatchEventXMLConverter.java

82 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

83 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


84 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CatchEventXMLConverter.java

85 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

86 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


87 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CatchEventXMLConverter.java

88 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

89 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


90 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\ActivitiEventListenerParser.java

91 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

92 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


93 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\ActivitiListenerParser.java

94 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

95 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


96 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\BaseChildElementParser.java

97 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\CancelEventDefinitionParser.java

98 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

99 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


100 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\CompensateEventDefinitionParser.java

101 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

102 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


103 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\ConditionExpressionParser.java

104 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

105 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


106 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\DataAssociationParser.java

107 CATCH CLAUSE : catch (Exception e) {
LOGGER.log(Level.WARNING,"Error parsing data association child elements",e);
}

108 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


109 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\DataInputAssociationParser.java

110 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

111 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


112 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\DataOutputAssociationParser.java

113 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

114 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


115 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\DocumentationParser.java

116 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

117 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


118 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\ErrorEventDefinitionParser.java

119 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

120 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


121 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FieldExtensionParser.java

122 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

123 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


124 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FieldExtensionParser.java

125 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error parsing field extension child elements",e);
}

126 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


127 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FlowNodeRefParser.java

128 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

129 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


130 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FormPropertyParser.java

131 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

132 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


133 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FormPropertyParser.java

134 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error parsing form properties child elements",e);
}

135 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


136 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\IOSpecificationParser.java

137 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

138 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


139 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\IOSpecificationParser.java

140 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error parsing ioSpecification child elements",e);
}

141 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


142 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\MessageEventDefinitionParser.java

143 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

144 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


145 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\MultiInstanceParser.java

146 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

147 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


148 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\MultiInstanceParser.java

149 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error parsing multi instance definition",e);
}

150 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


151 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\ScriptTextParser.java

152 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

153 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


154 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\SignalEventDefinitionParser.java

155 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

156 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


157 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TerminateEventDefinitionParser.java

158 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

159 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


160 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TextAnnotationTextParser.java

161 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

162 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


163 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TimeCycleParser.java

164 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

165 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


166 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TimeDateParser.java

167 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

168 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


169 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TimeDurationParser.java

170 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

171 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


172 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\TimerEventDefinitionParser.java

173 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

174 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


175 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EndEventXMLConverter.java

176 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

177 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


178 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EndEventXMLConverter.java

179 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

180 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


181 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EndEventXMLConverter.java

182 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

183 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


184 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EventGatewayXMLConverter.java

185 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

186 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


187 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EventGatewayXMLConverter.java

188 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

189 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


190 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\EventGatewayXMLConverter.java

191 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

192 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


193 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ExclusiveGatewayXMLConverter.java

194 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

195 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


196 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ExclusiveGatewayXMLConverter.java

197 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

198 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


199 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ExclusiveGatewayXMLConverter.java

200 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

201 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


202 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\ActivitiListenerExport.java

203 METHOD NAME : writeListeners(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

204 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


205 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\ActivitiListenerExport.java

206 METHOD NAME : writeEventListeners(List eventListeners,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

207 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


208 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\ActivitiListenerExport.java

209 METHOD NAME : writeListeners(String xmlElementName,List listenerList,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

210 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


211 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\BPMNDIExport.java

212 METHOD NAME : writeBPMNDI(BpmnModel model,XMLStreamWriter xtw) throws Exception

213 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


214 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\DefinitionsRootExport.java

215 METHOD NAME : writeRootElement(BpmnModel model,XMLStreamWriter xtw,String encoding) throws Exception

216 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


217 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\FieldExtensionExport.java

218 METHOD NAME : writeFieldExtensions(List fieldExtensionList,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

219 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


220 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\LaneExport.java

221 METHOD NAME : writeLanes(Process process,XMLStreamWriter xtw) throws Exception

222 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


223 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\MultiInstanceExport.java

224 METHOD NAME : writeMultiInstance(Activity activity,XMLStreamWriter xtw) throws Exception

225 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


226 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\PoolExport.java

227 METHOD NAME : writePools(BpmnModel model,XMLStreamWriter xtw) throws Exception

228 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


229 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\ProcessExport.java

230 METHOD NAME : writeProcess(Process process,XMLStreamWriter xtw) throws Exception

231 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


232 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\export\SignalAndMessageDefinitionExport.java

233 METHOD NAME : writeSignalsAndMessages(BpmnModel model,XMLStreamWriter xtw) throws Exception

234 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


235 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\InclusiveGatewayXMLConverter.java

236 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

237 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


238 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\InclusiveGatewayXMLConverter.java

239 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

240 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


241 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\InclusiveGatewayXMLConverter.java

242 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

243 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


244 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ManualTaskXMLConverter.java

245 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

246 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


247 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ManualTaskXMLConverter.java

248 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

249 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


250 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ManualTaskXMLConverter.java

251 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

252 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


253 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ParallelGatewayXMLConverter.java

254 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

255 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


256 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ParallelGatewayXMLConverter.java

257 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

258 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


259 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ParallelGatewayXMLConverter.java

260 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

261 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


262 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\BpmnEdgeParser.java

263 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

264 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


265 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\BpmnShapeParser.java

266 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

267 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


268 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\DefinitionsParser.java

269 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

270 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


271 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\ExtensionElementsParser.java

272 METHOD NAME : parse(XMLStreamReader xtr,List activeSubProcessList,Process activeProcess,BpmnModel model) throws Exception

273 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


274 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\ImportParser.java

275 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

276 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


277 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\InterfaceParser.java

278 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

279 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


280 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\InterfaceParser.java

281 CATCH CLAUSE : catch (Exception e) {
LOGGER.log(Level.WARNING,"Error parsing interface child elements",e);
}

282 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


283 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\ItemDefinitionParser.java

284 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

285 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


286 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\LaneParser.java

287 METHOD NAME : parse(XMLStreamReader xtr,Process activeProcess,BpmnModel model) throws Exception

288 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


289 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\MessageParser.java

290 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

291 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


292 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\PotentialStarterParser.java

293 METHOD NAME : parse(XMLStreamReader xtr,Process activeProcess) throws Exception

294 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


295 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\ProcessParser.java

296 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

297 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


298 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\parser\SignalParser.java

299 METHOD NAME : parse(XMLStreamReader xtr,BpmnModel model) throws Exception

300 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


301 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ReceiveTaskXMLConverter.java

302 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

303 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


304 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ReceiveTaskXMLConverter.java

305 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

306 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


307 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ReceiveTaskXMLConverter.java

308 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

309 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


310 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ScriptTaskXMLConverter.java

311 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

312 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


313 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ScriptTaskXMLConverter.java

314 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

315 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


316 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ScriptTaskXMLConverter.java

317 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

318 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


319 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SendTaskXMLConverter.java

320 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

321 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


322 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SendTaskXMLConverter.java

323 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

324 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


325 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SendTaskXMLConverter.java

326 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

327 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


328 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SendTaskXMLConverter.java

329 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

330 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


331 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SequenceFlowXMLConverter.java

332 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

333 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


334 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SequenceFlowXMLConverter.java

335 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

336 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


337 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\SequenceFlowXMLConverter.java

338 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

339 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


340 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ServiceTaskXMLConverter.java

341 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

342 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


343 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ServiceTaskXMLConverter.java

344 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

345 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


346 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ServiceTaskXMLConverter.java

347 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

348 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


349 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ServiceTaskXMLConverter.java

350 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

351 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


352 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\StartEventXMLConverter.java

353 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

354 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


355 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\StartEventXMLConverter.java

356 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

357 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


358 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\StartEventXMLConverter.java

359 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

360 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


361 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\StartEventXMLConverter.java

362 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

363 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


364 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TaskXMLConverter.java

365 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

366 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


367 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TaskXMLConverter.java

368 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

369 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


370 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TaskXMLConverter.java

371 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

372 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


373 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TextAnnotationXMLConverter.java

374 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

375 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


376 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TextAnnotationXMLConverter.java

377 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

378 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


379 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\TextAnnotationXMLConverter.java

380 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

381 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


382 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ThrowEventXMLConverter.java

383 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

384 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


385 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ThrowEventXMLConverter.java

386 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

387 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


388 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ThrowEventXMLConverter.java

389 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

390 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


391 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

392 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

393 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


394 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

395 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

396 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


397 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

398 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

399 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


400 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

401 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

402 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


403 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

404 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

405 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


406 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\UserTaskXMLConverter.java

407 METHOD NAME : parseChildElement(XMLStreamReader xtr,BaseElement parentElement,BpmnModel model) throws Exception

408 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


409 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

410 METHOD NAME : parseChildElements(String elementName,BaseElement parentElement,XMLStreamReader xtr,BpmnModel model) throws Exception

411 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


412 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

413 METHOD NAME : parseChildElements(String elementName,BaseElement parentElement,XMLStreamReader xtr,Map<String,BaseChildElementParser> childParsers,BpmnModel model) throws Exception

414 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


415 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

416 METHOD NAME : parseExtensionElement(XMLStreamReader xtr) throws Exception

417 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


418 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

419 METHOD NAME : writeDefaultAttribute(String attributeName,String value,XMLStreamWriter xtw) throws Exception

420 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


421 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

422 METHOD NAME : writeQualifiedAttribute(String attributeName,String value,XMLStreamWriter xtw) throws Exception

423 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


424 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

425 METHOD NAME : writeExtensionElements(BaseElement baseElement,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

426 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


427 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\util\BpmnXMLUtil.java

428 METHOD NAME : writeExtensionElement(ExtensionElement extensionElement,Map<String,String> namespaceMap,XMLStreamWriter xtw) throws Exception

429 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


430 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ValuedDataObjectXMLConverter.java

431 METHOD NAME : convertXMLToElement(XMLStreamReader xtr,BpmnModel model) throws Exception

432 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


433 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ValuedDataObjectXMLConverter.java

434 METHOD NAME : writeAdditionalAttributes(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

435 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


436 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ValuedDataObjectXMLConverter.java

437 METHOD NAME : writeExtensionChildElements(BaseElement element,boolean didWriteExtensionStartElement,XMLStreamWriter xtw) throws Exception

438 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


439 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\ValuedDataObjectXMLConverter.java

440 METHOD NAME : writeAdditionalChildElements(BaseElement element,BpmnModel model,XMLStreamWriter xtw) throws Exception

441 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


442 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\XMLStreamReaderUtil.java

443 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error while moving down in XML document",e);
}

444 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


445 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\XMLStreamReaderUtil.java

446 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn("Error while moving to end of element {}",elementName,e);
}

447 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


448 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\AbstractConverterTest.java

449 METHOD NAME : readXMLFile() throws Exception

450 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


451 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\AbstractConverterTest.java

452 METHOD NAME : exportAndReadXMLFile(BpmnModel bpmnModel) throws Exception

453 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


454 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CallActivityConverterTest.java

455 METHOD NAME : connvertXMLToModel() throws Exception

456 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


457 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CallActivityConverterTest.java

458 METHOD NAME : convertModelToXML() throws Exception

459 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


460 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ChineseConverterTest.java

461 METHOD NAME : connvertXMLToModel() throws Exception

462 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


463 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ChineseConverterTest.java

464 METHOD NAME : convertModelToXML() throws Exception

465 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


466 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CompleteConverterTest.java

467 METHOD NAME : connvertXMLToModel() throws Exception

468 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


469 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CompleteConverterTest.java

470 METHOD NAME : convertModelToXML() throws Exception

471 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


472 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CustomExtensionsConverterTest.java

473 METHOD NAME : convertXMLToModel() throws Exception

474 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


475 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CustomExtensionsConverterTest.java

476 METHOD NAME : convertModelToXML() throws Exception

477 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


478 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CustomNamespaceAttributeConverterTest.java

479 METHOD NAME : convertXMLToModel() throws Exception

480 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


481 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\CustomNamespaceAttributeConverterTest.java

482 METHOD NAME : convertModelToXML() throws Exception

483 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


484 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\DataObjectConverterTest.java

485 METHOD NAME : convertXMLToModel() throws Exception

486 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


487 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\DataObjectConverterTest.java

488 METHOD NAME : convertModelToXML() throws Exception

489 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


490 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EmptyModelTest.java

491 METHOD NAME : connvertXMLToModel() throws Exception

492 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


493 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EmptyModelTest.java

494 METHOD NAME : convertModelToXML() throws Exception

495 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


496 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EncodingConverterTest.java

497 METHOD NAME : connvertXMLToModel() throws Exception

498 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


499 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EncodingConverterTest.java

500 METHOD NAME : convertModelToXML() throws Exception

501 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


502 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EventBasedGatewayConverterTest.java

503 METHOD NAME : connvertXMLToModel() throws Exception

504 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


505 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\EventListenerConverterTest.java

506 METHOD NAME : connvertXMLToModel() throws Exception

507 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


508 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\FormPropertiesConverterTest.java

509 METHOD NAME : connvertJsonToModel() throws Exception

510 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


511 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\FormPropertiesConverterTest.java

512 METHOD NAME : doubleConversionValidation() throws Exception

513 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


514 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\InCompleteSignalConverterTest.java

515 METHOD NAME : convertXMLToModel() throws Exception

516 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


517 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\NotExecutableConverterTest.java

518 METHOD NAME : connvertXMLToModel() throws Exception

519 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


520 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\NotExecutableConverterTest.java

521 METHOD NAME : convertModelToXML() throws Exception

522 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


523 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\OtherToolImportConverterTest.java

524 METHOD NAME : connvertXMLToModel() throws Exception

525 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


526 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\OtherToolImportConverterTest.java

527 METHOD NAME : convertModelToXML() throws Exception

528 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


529 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\PoolsConverterTest.java

530 METHOD NAME : connvertXMLToModel() throws Exception

531 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


532 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\PoolsConverterTest.java

533 METHOD NAME : convertModelToXML() throws Exception

534 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


535 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ScopedConverterTest.java

536 METHOD NAME : connvertXMLToModel() throws Exception

537 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


538 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ScopedConverterTest.java

539 METHOD NAME : convertModelToXML() throws Exception

540 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


541 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ServiceTaskConverterTest.java

542 METHOD NAME : connvertXMLToModel() throws Exception

543 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


544 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ServiceTaskConverterTest.java

545 METHOD NAME : convertModelToXML() throws Exception

546 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


547 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\SimpleConverterTest.java

548 METHOD NAME : connvertXMLToModel() throws Exception

549 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


550 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\SimpleConverterTest.java

551 METHOD NAME : convertModelToXML() throws Exception

552 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


553 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\SubProcessConverterTest.java

554 METHOD NAME : connvertXMLToModel() throws Exception

555 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


556 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\SubProcessConverterTest.java

557 METHOD NAME : convertModelToXML() throws Exception

558 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


559 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\TextAnnotationConverterTest.java

560 METHOD NAME : connvertXMLToModel() throws Exception

561 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


562 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\TextAnnotationConverterTest.java

563 METHOD NAME : convertModelToXML() throws Exception

564 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


565 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\UserTaskConverterTest.java

566 METHOD NAME : connvertXMLToModel() throws Exception

567 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


568 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\UserTaskConverterTest.java

569 METHOD NAME : convertModelToXML() throws Exception

570 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


571 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ValuedDataObjectConverterTest.java

572 METHOD NAME : convertXMLToModel() throws Exception

573 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


574 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ValuedDataObjectConverterTest.java

575 METHOD NAME : convertModelToXML() throws Exception

576 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


577 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ValuedDataObjectWithExtensionsConverterTest.java

578 METHOD NAME : convertXMLToModel() throws Exception

579 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


580 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\editor\language\xml\ValuedDataObjectWithExtensionsConverterTest.java

581 METHOD NAME : convertModelToXML() throws Exception

582 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


583 FILE NAME : Activiti-master\modules\activiti-bpmn-converter\src\test\java\org\activiti\validation\ProcessValidationTest.java

584 METHOD NAME : parseXml() throws Exception

585 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


586 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiComponent.java

587 METHOD NAME : createEndpoint(String s,String s1,Map<String,Object> stringObjectMap) throws Exception

588 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


589 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiConsumer.java

590 METHOD NAME : doStart() throws Exception

591 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


592 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiConsumer.java

593 METHOD NAME : doStop() throws Exception

594 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


595 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiEndpoint.java

596 METHOD NAME : process(Exchange ex) throws Exception

597 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


598 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiEndpoint.java

599 METHOD NAME : createProducer() throws Exception

600 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


601 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiEndpoint.java

602 METHOD NAME : createConsumer(Processor processor) throws Exception

603 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


604 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\ActivitiProducer.java

605 METHOD NAME : process(Exchange exchange) throws Exception

606 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


607 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\CamelBehavior.java

608 METHOD NAME : execute(ActivityExecution execution) throws Exception

609 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


610 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\CamelBehavior.java

611 CATCH CLAUSE : catch (Exception e) {
throw new RuntimeException("Unable to process camel endpint asynchronously.");
}

612 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


613 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\CamelBehavior.java

614 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Expecting a SpringProcessEngineConfiguration for the Activiti Camel module.",e);
}

615 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


616 FILE NAME : Activiti-master\modules\activiti-camel\src\main\java\org\activiti\camel\CamelBehaviour.java

617 METHOD NAME : execute(ActivityExecution execution) throws Exception

618 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


619 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\AsyncPingTest.java

620 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\AsyncProcessTest.java

621 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\CamelVariableBodyMapTest.java

622 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\CamelVariableBodyTest.java

623 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\CustomContextTest.java

624 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\EmptyProcessTest.java

625 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\error\route\InboundErrorRoute.java

626 METHOD NAME : configure() throws Exception

627 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


628 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\error\route\OutboundErrorRoute.java

629 METHOD NAME : configure() throws Exception

630 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


631 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\ErrorHandlingTest.java

632 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\examples\pingPong\PingPongRoute.java

633 METHOD NAME : configure() throws Exception

634 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


635 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\examples\pingPong\SaveOutput.java

636 METHOD NAME : execute(DelegateExecution execution) throws Exception

637 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


638 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\examples\simpleCamelCall\SimpleCamelCallRoute.java

639 METHOD NAME : configure() throws Exception

640 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


641 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\MultipleInstanceRoute.java

642 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\ParallelProcessTest.java

643 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\revisited\AsyncProcessRevisitedTest.java

644 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\revisited\ParallelProcessRevisitedTest.java

645 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\AsyncCamelRoute.java

646 METHOD NAME : configure() throws Exception

647 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


648 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\AsyncPingRoute.java

649 METHOD NAME : configure() throws Exception

650 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


651 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\EmptyCamelRoute.java

652 METHOD NAME : configure() throws Exception

653 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


654 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\MultipleInstanceCamelRoute.java

655 METHOD NAME : configure() throws Exception

656 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


657 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\ParallelCamelRoute.java

658 METHOD NAME : configure() throws Exception

659 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


660 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\revisited\AsyncCamelRouteRevisted.java

661 METHOD NAME : configure() throws Exception

662 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


663 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\revisited\ParallelCamelRoute.java

664 METHOD NAME : configure() throws Exception

665 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


666 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\route\SampleCamelRoute.java

667 METHOD NAME : configure() throws Exception

668 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


669 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\SimpleProcessTest.java

670 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\SimpleSpringProcessTest.java

671 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\util\DummyExecutionListener.java

672 METHOD NAME : notify(DelegateExecution execution) throws Exception

673 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


674 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\util\DummyJavaDelegate.java

675 METHOD NAME : execute(DelegateExecution execution) throws Exception

676 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


677 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\util\InitDelegate.java

678 METHOD NAME : execute(DelegateExecution execution) throws Exception

679 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


680 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\util\SleepBean.java

681 METHOD NAME : sleep(String body,Exchange exchange) throws Exception

682 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


683 FILE NAME : Activiti-master\modules\activiti-camel\src\test\java\org\activiti\camel\util\TestJoinDelegate.java

684 METHOD NAME : execute(DelegateExecution execution) throws Exception

685 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


686 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\ActivitiExtension.java

687 CATCH CLAUSE : catch (Exception e) {
event.addDeploymentProblem(e);
}

688 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


689 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\annotation\CompleteTaskInterceptor.java

690 METHOD NAME : invoke(InvocationContext ctx) throws Exception

691 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


692 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\annotation\CompleteTaskInterceptor.java

693 CATCH CLAUSE : catch (InvocationTargetException e) {
throw new ActivitiCdiException("Error while completing task: " + e.getCause().getMessage(),e.getCause());
}

694 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception


695 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\annotation\StartProcessInterceptor.java

696 METHOD NAME : invoke(InvocationContext ctx) throws Exception

697 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


698 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\annotation\StartProcessInterceptor.java

699 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while starting process using @StartProcess on method '" + ctx.getMethod() + "': "+ e.getMessage(),e);
}

700 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


701 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\annotation\StartProcessInterceptor.java

702 METHOD NAME : extractVariables(StartProcess startProcessAnnotation,InvocationContext ctx) throws Exception

703 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


704 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\event\CdiExecutionListener.java

705 METHOD NAME : notify(DelegateExecution execution) throws Exception

706 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


707 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\event\CdiExecutionListener.java

708 CATCH CLAUSE : catch (Exception e) {
return;
}

709 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


710 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\event\CdiTaskListener.java

711 CATCH CLAUSE : catch (Exception e) {
return;
}

712 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


713 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\LocalProcessEngineLookup.java

714 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Unable to close the local ProcessEngine",e);
}

715 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


716 FILE NAME : Activiti-master\modules\activiti-cdi\src\main\java\org\activiti\cdi\impl\ProcessDeployer.java

717 CATCH CLAUSE : catch (Exception e) {
logger.error("could not parse file '{}'. {}",PROCESSES_FILE_NAME,e.getMessage(),e);
}

718 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


719 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\api\BusinessProcessBeanTest.java

720 METHOD NAME : test() throws Exception

721 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


722 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\bpmn\SignalEventTest.java

723 METHOD NAME : execute(DelegateExecution execution) throws Exception

724 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


725 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\CdiActivitiTestCase.java

726 METHOD NAME : setUp() throws Exception

727 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


728 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\CdiActivitiTestCase.java

729 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Exception while waiting on condition: " + e.getMessage(),e);
}

730 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


731 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\impl\context\BusinessProcessContextTest.java

732 METHOD NAME : testResolution() throws Exception

733 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


734 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\impl\context\BusinessProcessContextTest.java

735 METHOD NAME : testResolutionBeforeProcessStart() throws Exception

736 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


737 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\impl\context\BusinessProcessContextTest.java

738 METHOD NAME : testConversationalBeanStoreFlush() throws Exception

739 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


740 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\impl\context\BusinessProcessContextTest.java

741 METHOD NAME : testChangeProcessScopedBeanProperty() throws Exception

742 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


743 FILE NAME : Activiti-master\modules\activiti-cdi\src\test\java\org\activiti\cdi\test\impl\el\ElTest.java

744 METHOD NAME : testSetBeanProperty() throws Exception

745 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


746 FILE NAME : Activiti-master\modules\activiti-common-rest\src\main\java\org\activiti\rest\common\api\RequestUtil.java

747 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiIllegalArgumentException("Failed to parse date " + input);
}

748 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


749 FILE NAME : Activiti-master\modules\activiti-common-rest\src\main\java\org\activiti\rest\common\api\RequestUtil.java

750 CATCH CLAUSE : catch (Exception e) {
}

751 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


752 FILE NAME : Activiti-master\modules\activiti-common-rest\src\main\java\org\activiti\rest\common\api\RequestUtil.java

753 CATCH CLAUSE : catch (Exception e) {
}

754 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


755 FILE NAME : Activiti-master\modules\activiti-common-rest\src\main\java\org\activiti\rest\common\servlet\ActivitiServletContextListener.java

756 CATCH CLAUSE : catch (Exception e) {
LOGGER.error("Error starting the Activiti REST API",e);
}

757 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


758 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\process\SimulationRunTask.java

759 METHOD NAME : execute(DelegateExecution execution) throws Exception

760 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


761 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\AbstractSimulationRun.java

762 METHOD NAME : execute(VariableScope execution) throws Exception

763 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


764 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\delegate\AbstractSimulationActivityBehavior.java

765 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\impl\clock\ThreadLocalClock.java

766 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Unable to get simulation clock",e);
}

767 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


768 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\impl\ScriptEventHandler.java

769 CATCH CLAUSE : catch (ActivitiException e) {
log.warn("Exception while executing simulation event " + event + " scriptPropertyName :"+ this.scriptPropertyName+ "\n script: "+ event.getProperty(this.scriptPropertyName)+ "\n exception is:"+ e.getMessage());
throw e;
}

770 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


771 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\SimpleSimulationRun.java

772 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Unable to initialize simulation run",e);
}

773 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


774 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\SimpleSimulationRunFactory.java

775 METHOD NAME : getObject() throws Exception

776 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


777 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\SimulationEvent.java

778 METHOD NAME : getObject() throws Exception

779 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


780 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\crystalball\simulator\SimulationRun.java

781 FILE NAME : Activiti-master\modules\activiti-crystalball\src\main\java\org\activiti\engine\impl\jobexecutor\SimulationAcquireJobsRunnable.java

782 CATCH CLAUSE : catch (Exception e) {
if (log.isLoggable(Level.SEVERE)) {
log.log(Level.SEVERE,"exception during job acquisition: " + e.getMessage(),e);
}
millisToWait*=waitIncreaseFactor;
if (millisToWait > maxWait) {
millisToWait=maxWait;
}
else if (millisToWait == 0) {
millisToWait=jobExecutor.getWaitTimeInMillis();
}
}

783 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


784 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\MultiInstanceScriptEventHandlerTest.java

785 METHOD NAME : testSequentialSimulationRun() throws Exception

786 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


787 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

788 CATCH CLAUSE : catch (AssertionFailedError e) {
log.warn("Playback simulation {} has failed",getName());
log.error(EMPTY_LINE);
log.error("ASSERTION FAILED: {}",e,e);
exception=e;
throw e;
}

789 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


790 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

791 CATCH CLAUSE : catch (AssertionFailedError e) {
log.warn("Playback simulation {} has failed",getName());
log.error(EMPTY_LINE);
log.error("ASSERTION FAILED: {}",e,e);
exception=e;
throw e;
}

792 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level


793 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

794 CATCH CLAUSE : catch (Throwable e) {
log.warn("Playback simulation {} has failed",getName());
log.error(EMPTY_LINE);
log.error("EXCEPTION: {}",e,e);
exception=e;
throw e;
}

795 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


796 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

797 CATCH CLAUSE : catch (Throwable e) {
log.warn("Playback simulation {} has failed",getName());
log.error(EMPTY_LINE);
log.error("EXCEPTION: {}",e,e);
exception=e;
throw e;
}

798 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level


799 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

800 CATCH CLAUSE : catch (Exception e) {
log.warn("Could not get method by reflection. This could happen if you are using @parameters in combination with annotations.",e);
return;
}

801 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


802 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

803 CATCH CLAUSE : catch (Exception e) {
log.error("Could not get CheckStatus method: {} by reflection. This could happen if you are using @parameters in combination with annotations.",checkStatusMethodName,e);
throw new RuntimeException("Could not get CheckStatus method by reflection");
}

804 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


805 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

806 CATCH CLAUSE : catch (Exception e) {
log.error("Could not get CheckStatus method: {} by reflection. This could happen if you are using @parameters in combination with annotations.",checkStatusMethodName,e);
throw new RuntimeException("Could not get CheckStatus method by reflection");
}

807 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


808 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

809 CATCH CLAUSE : catch (AssertionFailedError e) {
log.error(EMPTY_LINE);
log.error("ASSERTION FAILED: {}",e,e);
exception=e;
throw e;
}

810 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


811 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

812 CATCH CLAUSE : catch (AssertionFailedError e) {
log.error(EMPTY_LINE);
log.error("ASSERTION FAILED: {}",e,e);
exception=e;
throw e;
}

813 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level


814 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

815 CATCH CLAUSE : catch (Throwable e) {
log.warn("Record events {} has failed",getName());
log.error(EMPTY_LINE);
log.error("EXCEPTION: {}",e,e);
exception=e;
throw e;
}

816 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


817 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\AbstractPlaybackTest.java

818 CATCH CLAUSE : catch (Throwable e) {
log.warn("Record events {} has failed",getName());
log.error(EMPTY_LINE);
log.error("EXCEPTION: {}",e,e);
exception=e;
throw e;
}

819 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level


820 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\PlaybackProcessStartTest.java

821 METHOD NAME : testSignals() throws Exception

822 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


823 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\PlaybackProcessStartTest.java

824 METHOD NAME : testUserTask() throws Exception

825 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


826 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\playback\PlaybackRunTest.java

827 METHOD NAME : testProcessInstanceStartEvents() throws Exception

828 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


829 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\replay\ReplayRunTest.java

830 METHOD NAME : testProcessInstanceStartEvents() throws Exception

831 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


832 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\impl\ScriptEventHandlerTest.java

833 METHOD NAME : testSimpleScriptExecution() throws Exception

834 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


835 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleEventCalendarTest.java

836 METHOD NAME : testIsEmpty() throws Exception

837 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


838 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleEventCalendarTest.java

839 METHOD NAME : testAddEventsAndRemoveFirst() throws Exception

840 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


841 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleEventCalendarTest.java

842 METHOD NAME : testClear() throws Exception

843 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


844 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleEventCalendarTest.java

845 METHOD NAME : testRunEventFromPast() throws Exception

846 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


847 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

848 METHOD NAME : testStep() throws Exception

849 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


850 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

851 METHOD NAME : testRunToTime() throws Exception

852 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


853 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

854 METHOD NAME : testRunToTimeInThePast() throws Exception

855 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


856 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

857 METHOD NAME : testRunToEvent() throws Exception

858 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


859 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

860 METHOD NAME : testRunToNonExistingEvent() throws Exception

861 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


862 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimpleSimulationRunTest.java

863 METHOD NAME : testRunContinue() throws Exception

864 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


865 FILE NAME : Activiti-master\modules\activiti-crystalball\src\test\java\org\activiti\crystalball\simulator\SimulationEventComparatorTest.java

866 METHOD NAME : testCompare() throws Exception

867 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


868 FILE NAME : Activiti-master\modules\activiti-cxf\src\main\java\org\activiti\engine\impl\webservice\CxfWebServiceClient.java

869 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\impl\webservice\WebServiceTaskTest.java

870 METHOD NAME : tearDown() throws Exception

871 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


872 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\impl\webservice\WebServiceTaskTest.java

873 METHOD NAME : testWebServiceInvocation() throws Exception

874 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


875 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\impl\webservice\WSDLImporterTest.java

876 METHOD NAME : testImportCounter() throws Exception

877 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


878 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\impl\webservice\WSDLImporterTest.java

879 METHOD NAME : testImportCounterWithImport() throws Exception

880 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


881 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\sendtask\WebServiceSimplisticTest.java

882 METHOD NAME : testAsyncInvocationWithSimplisticDataFlow() throws Exception

883 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


884 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\sendtask\WebServiceTest.java

885 METHOD NAME : testAsyncInvocationWithoutDataFlow() throws Exception

886 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


887 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\sendtask\WebServiceUELTest.java

888 METHOD NAME : testAsyncInvocationWithDataFlowUEL() throws Exception

889 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


890 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\servicetask\AbstractWebServiceTaskTest.java

891 METHOD NAME : tearDown() throws Exception

892 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


893 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\servicetask\WebServiceSimplisticTest.java

894 METHOD NAME : testWebServiceInvocationWithSimplisticDataFlow() throws Exception

895 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


896 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\servicetask\WebServiceTaskTest.java

897 METHOD NAME : testWebServiceInvocationWithoutDataFlow() throws Exception

898 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


899 FILE NAME : Activiti-master\modules\activiti-cxf\src\test\java\org\activiti\engine\test\bpmn\servicetask\WebServiceUELTest.java

900 METHOD NAME : testWebServiceInvocationWithDataFlowUEL() throws Exception

901 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


902 FILE NAME : Activiti-master\modules\activiti-diagram-rest\src\main\java\org\activiti\rest\diagram\services\ProcessInstanceHighlightsResource.java

903 CATCH CLAUSE : catch (Exception e) {
e.printStackTrace();
}

904 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


905 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\delegate\ExecutionListener.java

906 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\delegate\JavaDelegate.java

907 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\AbstractBpmnActivityBehavior.java

908 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

909 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


910 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\BoundaryEventActivityBehavior.java

911 METHOD NAME : execute(ActivityExecution execution) throws Exception

912 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


913 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\BusinessRuleTaskActivityBehavior.java

914 METHOD NAME : execute(ActivityExecution execution) throws Exception

915 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


916 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CallActivityBehavior.java

917 METHOD NAME : execute(ActivityExecution execution) throws Exception

918 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


919 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CallActivityBehavior.java

920 METHOD NAME : completing(DelegateExecution execution,DelegateExecution subProcessInstance) throws Exception

921 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


922 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CallActivityBehavior.java

923 METHOD NAME : completed(ActivityExecution execution) throws Exception

924 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


925 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CancelBoundaryEventActivityBehavior.java

926 METHOD NAME : execute(ActivityExecution execution) throws Exception

927 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


928 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CancelBoundaryEventActivityBehavior.java

929 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

930 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


931 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\CancelEndEventActivityBehavior.java

932 METHOD NAME : execute(ActivityExecution execution) throws Exception

933 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


934 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ErrorEndEventActivityBehavior.java

935 METHOD NAME : execute(ActivityExecution execution) throws Exception

936 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


937 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\EventBasedGatewayActivityBehavior.java

938 METHOD NAME : execute(ActivityExecution execution) throws Exception

939 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


940 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\EventSubProcessStartEventActivityBehavior.java

941 METHOD NAME : execute(ActivityExecution execution) throws Exception

942 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


943 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\FlowNodeActivityBehavior.java

944 METHOD NAME : execute(ActivityExecution execution) throws Exception

945 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


946 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\FlowNodeActivityBehavior.java

947 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

948 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


949 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\InclusiveGatewayActivityBehavior.java

950 METHOD NAME : execute(ActivityExecution execution) throws Exception

951 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


952 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateCatchEventActivityBehavior.java

953 METHOD NAME : execute(ActivityExecution execution) throws Exception

954 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


955 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateCatchEventActivityBehavior.java

956 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

957 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


958 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateThrowCompensationEventActivityBehavior.java

959 METHOD NAME : execute(ActivityExecution execution) throws Exception

960 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


961 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateThrowCompensationEventActivityBehavior.java

962 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

963 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


964 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateThrowSignalEventActivityBehavior.java

965 METHOD NAME : execute(ActivityExecution execution) throws Exception

966 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


967 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\MultiInstanceActivityBehavior.java

968 METHOD NAME : execute(ActivityExecution execution) throws Exception

969 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


970 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\MultiInstanceActivityBehavior.java

971 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\NoneEndEventActivityBehavior.java

972 METHOD NAME : execute(ActivityExecution execution) throws Exception

973 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


974 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ParallelGatewayActivityBehavior.java

975 METHOD NAME : execute(ActivityExecution execution) throws Exception

976 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


977 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ParallelMultiInstanceBehavior.java

978 METHOD NAME : createInstances(ActivityExecution execution) throws Exception

979 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


980 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ReceiveTaskActivityBehavior.java

981 METHOD NAME : execute(ActivityExecution execution) throws Exception

982 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


983 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ReceiveTaskActivityBehavior.java

984 METHOD NAME : signal(ActivityExecution execution,String signalName,Object data) throws Exception

985 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


986 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ScriptTaskActivityBehavior.java

987 METHOD NAME : execute(ActivityExecution execution) throws Exception

988 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


989 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ScriptTaskActivityBehavior.java

990 CATCH CLAUSE : catch (ActivitiException e) {
LOGGER.warn("Exception while executing " + execution.getActivity().getId() + " : "+ e.getMessage());
noErrors=false;
if (e.getCause() instanceof ScriptException && e.getCause().getCause() instanceof ScriptException && e.getCause().getCause().getCause() instanceof BpmnError) {
ErrorPropagation.propagateError((BpmnError)e.getCause().getCause().getCause(),execution);
}
else {
throw e;
}
}

991 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)


992 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\SequentialMultiInstanceBehavior.java

993 METHOD NAME : createInstances(ActivityExecution execution) throws Exception

994 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


995 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\SequentialMultiInstanceBehavior.java

996 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Could not execute inner activity behavior of multi instance behavior",e);
}

997 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


998 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\SequentialMultiInstanceBehavior.java

999 METHOD NAME : execute(ActivityExecution execution) throws Exception

1000 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1001 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskDelegateExpressionActivityBehavior.java

1002 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

1003 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1004 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskDelegateExpressionActivityBehavior.java

1005 METHOD NAME : execute(ActivityExecution execution) throws Exception

1006 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1007 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskDelegateExpressionActivityBehavior.java

1008 CATCH CLAUSE : catch (Exception exc) {
Throwable cause=exc;
BpmnError error=null;
while (cause != null) {
if (cause instanceof BpmnError) {
error=(BpmnError)cause;
break;
}
cause=cause.getCause();
}
if (error != null) {
ErrorPropagation.propagateError(error,execution);
}
else {
throw exc;
}
}

1009 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)


1010 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskDelegateExpressionActivityBehavior.java

1011 CATCH CLAUSE : catch (Exception exc) {
Throwable cause=exc;
BpmnError error=null;
while (cause != null) {
if (cause instanceof BpmnError) {
error=(BpmnError)cause;
break;
}
cause=cause.getCause();
}
if (error != null) {
ErrorPropagation.propagateError(error,execution);
}
else {
throw exc;
}
}

1012 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1013 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskExpressionActivityBehavior.java

1014 METHOD NAME : execute(ActivityExecution execution) throws Exception

1015 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1016 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskExpressionActivityBehavior.java

1017 CATCH CLAUSE : catch (Exception exc) {
Throwable cause=exc;
BpmnError error=null;
while (cause != null) {
if (cause instanceof BpmnError) {
error=(BpmnError)cause;
break;
}
cause=cause.getCause();
}
if (error != null) {
ErrorPropagation.propagateError(error,execution);
}
else {
throw exc;
}
}

1018 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)


1019 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskExpressionActivityBehavior.java

1020 CATCH CLAUSE : catch (Exception exc) {
Throwable cause=exc;
BpmnError error=null;
while (cause != null) {
if (cause instanceof BpmnError) {
error=(BpmnError)cause;
break;
}
cause=cause.getCause();
}
if (error != null) {
ErrorPropagation.propagateError(error,execution);
}
else {
throw exc;
}
}

1021 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1022 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskJavaDelegateActivityBehavior.java

1023 METHOD NAME : execute(ActivityExecution execution) throws Exception

1024 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1025 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskJavaDelegateActivityBehavior.java

1026 METHOD NAME : notify(DelegateExecution execution) throws Exception

1027 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1028 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ServiceTaskJavaDelegateActivityBehavior.java

1029 METHOD NAME : execute(DelegateExecution execution) throws Exception

1030 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1031 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ShellActivityBehavior.java

1032 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Could not execute shell command ",e);
}

1033 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1034 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\SubProcessActivityBehavior.java

1035 METHOD NAME : execute(ActivityExecution execution) throws Exception

1036 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1037 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\TerminateEndEventActivityBehavior.java

1038 METHOD NAME : execute(ActivityExecution execution) throws Exception

1039 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1040 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\UserTaskActivityBehavior.java

1041 METHOD NAME : execute(ActivityExecution execution) throws Exception

1042 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1043 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\UserTaskActivityBehavior.java

1044 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

1045 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1046 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\WebServiceActivityBehavior.java

1047 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\diagram\ProcessDiagramLayoutFactory.java

1048 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while parsing BPMN model.",e);
}

1049 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1050 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1051 METHOD NAME : notify(DelegateExecution execution) throws Exception

1052 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1053 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1054 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Exception while invoking TaskListener: " + e.getMessage(),e);
}

1055 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1056 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1057 METHOD NAME : execute(ActivityExecution execution) throws Exception

1058 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1059 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1060 METHOD NAME : signal(ActivityExecution execution,String signalName,Object signalData) throws Exception

1061 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1062 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1063 METHOD NAME : completing(DelegateExecution execution,DelegateExecution subProcessInstance) throws Exception

1064 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1065 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegate.java

1066 METHOD NAME : completed(ActivityExecution execution) throws Exception

1067 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1068 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ErrorPropagation.java

1069 METHOD NAME : propagateError(BpmnError error,ActivityExecution execution) throws Exception

1070 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1071 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ErrorPropagation.java

1072 METHOD NAME : propagateError(String errorCode,ActivityExecution execution) throws Exception

1073 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1074 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ErrorThrowingEventListener.java

1075 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while propagating error-event",e);
}

1076 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1077 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\listener\DelegateExpressionExecutionListener.java

1078 METHOD NAME : notify(DelegateExecution execution) throws Exception

1079 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1080 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\listener\DelegateExpressionTaskListener.java

1081 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Exception while invoking TaskListener: " + e.getMessage(),e);
}

1082 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1083 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\listener\ExpressionExecutionListener.java

1084 METHOD NAME : notify(DelegateExecution execution) throws Exception

1085 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1086 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\listener\ScriptExecutionListener.java

1087 METHOD NAME : notify(DelegateExecution execution) throws Exception

1088 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1089 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\BpmnParse.java

1090 CATCH CLAUSE : catch (Exception e) {
if (e instanceof ActivitiException) {
throw (ActivitiException)e;
}
else {
throw new ActivitiException("Error parsing XML",e);
}
}

1091 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1092 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\BpmnParse.java

1093 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Could not find importer for type " + theImport.getImportType());
}

1094 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1095 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\AdvancedCycleBusinessCalendar.java

1096 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiIllegalArgumentException("Cannot parse duration",e);
}

1097 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1098 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\AdvancedSchedulerResolverWithTimeZone.java

1099 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Failed to parse scheduler expression: " + duedateDescription,e);
}

1100 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1101 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\CronExpression.java

1102 CATCH CLAUSE : catch (Exception e) {
throw new ParseException("Illegal cron expression format (" + e.toString() + ")",0);
}

1103 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1104 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\CronExpression.java

1105 CATCH CLAUSE : catch (Exception e) {
throw new ParseException("A numeric value between 1 and 5 must follow the '#' option",i);
}

1106 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1107 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\CronExpression.java

1108 CATCH CLAUSE : catch (Exception e) {
throw new ParseException("A numeric value between 1 and 5 must follow the '#' option",i);
}

1109 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1110 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\CycleBusinessCalendar.java

1111 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Failed to parse cron expression: " + duedateDescription,e);
}

1112 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1113 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\DueDateBusinessCalendar.java

1114 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("couldn't resolve duedate: " + e.getMessage(),e);
}

1115 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1116 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\DurationBusinessCalendar.java

1117 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("couldn't resolve duedate: " + e.getMessage(),e);
}

1118 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1119 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\DurationHelper.java

1120 METHOD NAME : DurationHelper(String expressionS,ClockReader clockReader) throws Exception

1121 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1122 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\DurationHelper.java

1123 METHOD NAME : parseDate(String date) throws Exception

1124 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1125 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\DurationHelper.java

1126 METHOD NAME : parsePeriod(String period) throws Exception

1127 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1128 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\cfg\ProcessEngineConfigurationImpl.java

1129 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("couldn't lookup datasource from " + dataSourceJndiName + ": "+ e.getMessage(),e);
}

1130 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1131 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\cfg\ProcessEngineConfigurationImpl.java

1132 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while building ibatis SqlSessionFactory: " + e.getMessage(),e);
}

1133 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1134 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\ExecuteJobsCmd.java

1135 CATCH CLAUSE : catch (Throwable exception) {
CommandExecutor commandExecutor=Context.getProcessEngineConfiguration().getCommandExecutor();
commandContext.getTransactionContext().addTransactionListener(TransactionState.ROLLED_BACK,new FailedJobListener(commandExecutor,jobId,exception));
if (commandContext.getEventDispatcher().isEnabled()) {
try {
commandContext.getEventDispatcher().dispatchEvent(ActivitiEventBuilder.createEntityExceptionEvent(ActivitiEventType.JOB_EXECUTION_FAILURE,job,exception));
}
catch ( Throwable ignore) {
log.warn("Exception occured while dispatching job failure event, ignoring.",ignore);
}
}
throw new ActivitiException("Job " + jobId + " failed",exception);
}

1136 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1137 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSchemaExport.java

1138 METHOD NAME : main(String[] args) throws Exception

1139 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1140 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSchemaExport.java

1141 CATCH CLAUSE : catch (Exception e) {
e.printStackTrace();
connection.close();
}

1142 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1143 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1144 CATCH CLAUSE : catch (Exception e) {
if (isMissingTablesException(e)) {
throw new ActivitiException("no activiti tables in db. set <property name="databaseSchemaUpdate" to value="true" or value="create-drop" (use create-drop for testing only!) in bean processEngineConfiguration in activiti.cfg.xml for automatic schema creation",e);
}
else {
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
}
else {
throw new ActivitiException("couldn't get db schema version",e);
}
}
}

1145 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1146 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1147 CATCH CLAUSE : catch (Exception e) {
log.error("Error closing meta data tables",e);
}

1148 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1149 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1150 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("couldn't check if tables are already present using metadata: " + e.getMessage(),e);
}

1151 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1152 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1153 CATCH CLAUSE : catch (Exception e) {
log.info("Could not get database metadata",e);
}

1154 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1155 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1156 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("error while executing database update java class '" + upgradestepClassName + "': "+ e.getMessage(),e);
}

1157 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1158 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1159 CATCH CLAUSE : catch (Exception e) {
if (exception == null) {
exception=e;
exceptionSqlStatement=sqlStatement;
}
log.error("problem during schema {}, statement {}",operation,sqlStatement,e);
}

1160 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1161 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java

1162 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("couldn't " + operation + " db schema: "+ exceptionSqlStatement,e);
}

1163 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1164 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\upgrade\DbUpgradeStep.java

1165 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\db\upgrade\DbUpgradeStep52To53InsertPropertyHistoryLevel.java

1166 METHOD NAME : execute(DbSqlSession dbSqlSession) throws Exception

1167 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1168 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\ActivityBehaviorInvocation.java

1169 METHOD NAME : invoke() throws Exception

1170 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1171 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\DefaultDelegateInterceptor.java

1172 METHOD NAME : handleInvocation(DelegateInvocation invocation) throws Exception

1173 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1174 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\DelegateInvocation.java

1175 METHOD NAME : proceed, performing the actual invocation of the user

  • code.
  • @throws Exceptionthe exception thrown by the user code
    */
    public void proceed() throws Exception

1176 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1177 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\DelegateInvocation.java

1178 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\ExecutionListenerInvocation.java

1179 METHOD NAME : invoke() throws Exception

1180 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1181 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\ExpressionGetInvocation.java

1182 METHOD NAME : invoke() throws Exception

1183 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1184 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\ExpressionSetInvocation.java

1185 METHOD NAME : invoke() throws Exception

1186 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1187 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\JavaDelegateInvocation.java

1188 METHOD NAME : invoke() throws Exception

1189 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1190 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\delegate\TaskListenerInvocation.java

1191 METHOD NAME : invoke() throws Exception

1192 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1193 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\el\JuelExpression.java

1194 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while evaluating expression: " + expressionText,e);
}

1195 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1196 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\el\JuelExpression.java

1197 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while evaluating expression: " + expressionText,e);
}

1198 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1199 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\event\AbstractEventHandler.java

1200 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("exception while sending signal for event subscription '" + eventSubscription + "':"+ e.getMessage(),e);
}

1201 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1202 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\event\CompensationEventHandler.java

1203 CATCH CLAUSE : catch (Exception e) {
throw new ActivitiException("Error while handling compensation event " + eventSubscription,e);
}

1204 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1205 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\event\logger\EventLogger.java

1206 CATCH CLAUSE : catch (Exception e) {
logger.warn("Could not instantiate " + eventHandlerClass + ", this is most likely a programmatic error");
}

1207 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1208 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\event\logger\handler\AbstractDatabaseEventLoggerEventHandler.java

1209 CATCH CLAUSE : catch (Exception e) {
}

1210 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1211 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\history\handler\CallActivityStartHandler.java

1212 METHOD NAME : notify(DelegateExecution execution) throws Exception

1213 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1214 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\history\handler\StartEventEndHandler.java

1215 METHOD NAME : notify(DelegateExecution execution) throws Exception

1216 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1217 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContextInterceptor.java

1218 CATCH CLAUSE : catch (Exception e) {
context.exception(e);
}

1219 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1220 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\DelegateInterceptor.java

1221 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\JtaTransactionInterceptor.java

1222 CATCH CLAUSE : catch (Exception ex) {
doRollback(isNew);
throw new UndeclaredThrowableException(ex,"TransactionCallback threw undeclared checked exception");
}

1223 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1224 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\BeanELResolver.java

1225 CATCH CLAUSE : catch (Exception e) {
throw new ELException(e);
}

1226 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1227 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\BeanELResolver.java

1228 CATCH CLAUSE : catch (NoSuchMethodException e) {
return null;
}

1229 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever


1230 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\DynamicBeanPropertyELResolver.java

1231 CATCH CLAUSE : catch (Exception e) {
throw new ELException(e);
}

1232 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1233 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\DynamicBeanPropertyELResolver.java

1234 CATCH CLAUSE : catch (Exception e) {
throw new ELException(e);
}

1235 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1236 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\ExpressionFactory.java

1237 CATCH CLAUSE : catch (Exception io) {
}

1238 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1239 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\ExpressionFactory.java

1240 CATCH CLAUSE : catch (Exception se) {
}

1241 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1242 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\ExpressionFactory.java

1243 CATCH CLAUSE : catch (Exception e) {
}

1244 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1245 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\javax\el\ExpressionFactory.java

1246 CATCH CLAUSE : catch (Exception e) {
throw new ELException("Could not create expression factory instance",e);
}

1247 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1248 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\CallerRunsRejectedJobsHandler.java

1249 CATCH CLAUSE : catch (Exception e) {
log.error("Failed to execute rejected jobs " + jobIds,e);
}

1250 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1251 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\FailedJobListener.java

1252 CATCH CLAUSE : catch (Throwable t) {
log.warn("Error while executing command when job is failed for job: '" + jobId + "'.",t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
throw new RuntimeException(t);
}

1253 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1254 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerCatchIntermediateEventJobHandler.java

1255 CATCH CLAUSE : catch (RuntimeException e) {
LogMDC.putMDCExecution(execution);
log.error("exception during timer execution",e);
LogMDC.clear();
throw e;
}

1256 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1257 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerCatchIntermediateEventJobHandler.java

1258 CATCH CLAUSE : catch (Exception e) {
LogMDC.putMDCExecution(execution);
log.error("exception during timer execution",e);
LogMDC.clear();
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1259 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1260 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerCatchIntermediateEventJobHandler.java

1261 CATCH CLAUSE : catch (Exception e) {
LogMDC.putMDCExecution(execution);
log.error("exception during timer execution",e);
LogMDC.clear();
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1262 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1263 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerExecuteNestedActivityJobHandler.java

1264 CATCH CLAUSE : catch (RuntimeException e) {
log.error("exception during timer execution",e);
throw e;
}

1265 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1266 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerExecuteNestedActivityJobHandler.java

1267 CATCH CLAUSE : catch (Exception e) {
log.error("exception during timer execution",e);
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1268 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1269 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerExecuteNestedActivityJobHandler.java

1270 CATCH CLAUSE : catch (Exception e) {
log.error("exception during timer execution",e);
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1271 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1272 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerStartEventJobHandler.java

1273 CATCH CLAUSE : catch (RuntimeException e) {
log.error("exception during timer execution",e);
throw e;
}

1274 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1275 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerStartEventJobHandler.java

1276 CATCH CLAUSE : catch (Exception e) {
log.error("exception during timer execution",e);
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1277 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


1278 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerStartEventJobHandler.java

1279 CATCH CLAUSE : catch (Exception e) {
log.error("exception during timer execution",e);
throw new ActivitiException("exception during timer execution: " + e.getMessage(),e);
}

1280 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1281 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\Bindings.java

1282 CATCH CLAUSE : catch (NoSuchMethodException e) {
throw new IOException(e.getMessage());
}

1283 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception


1284 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\Builder.java

1285 CATCH CLAUSE : catch (ScanException e) {
throw new TreeBuilderException(expression,e.position,e.encountered,e.expected,e.getMessage());
}

1286 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception


1287 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\Builder.java

1288 CATCH CLAUSE : catch (ParseException e) {
throw new TreeBuilderException(expression,e.position,e.encountered,e.expected,e.getMessage());
}

1289 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception


1290 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\ExpressionFactoryImpl.java

1291 CATCH CLAUSE : catch (Exception e) {
throw new ELException("TypeConverter " + clazz + " could not be instantiated",e);
}

1292 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1293 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\ExpressionFactoryImpl.java

1294 CATCH CLAUSE : catch (Exception e) {
throw new ELException("TreeBuilder " + clazz + " could not be instantiated",e);
}

1295 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1296 FILE NAME : Activiti-master\modules\activiti-engine\src\main\java\org\activiti\engine\impl\juel\ExpressionFactoryImpl.java

1297 CATCH CLAUSE : catch (Exception e) {
throw new ELException("Could not get context class loader",e);
}

1298 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown

Optional OSGi imports on Activiti 5.14-SNAPSHOT become required in Activiti 5.14

Hi,
I'm trying to update Activiti version used inside an OSGi project from the version 5.14-SNAPSHOT (the one as of this pull request: #131) to the final 5.14.

However, I'm having upgrade issues due a change applied by this commit: 2ff87fa

In short, the commit changes the "resolution:=optional" directive on many packages from "sub-package transitive" (with leading wildcard) to "non transitive" (no leading wildcard).

Using drools packages imports for an example, these are the MANIFEST.MF Import-Package entries for org.activiti.engine bundle version 5.14-SNAPSHOT (as of pull request: #131):

org.drools;resolution:=optional;version="[5.5,6)"
org.drools.builder;resolution:=optional;version="[5.5,6)"
org.drools.definition.rule;resolution:=optional;version="[5.5,6)"
org.drools.io;resolution:=optional;version="[5.5,6)"
org.drools.runtime;resolution:=optional;version="[5.5,6)"
org.drools.runtime.rule;resolution:=optional;version="[5.5,6)"

These, instead, are the same entries but inside the version 5.14:

org.drools;resolution:=optional;version="[5.5,6)"
org.drools.builder;version="[5.5,6)"
org.drools.definition.rule;version="[5.5,6)"
org.drools.io;version="[5.5,6)"
org.drools.runtime;version="[5.5,6)"
org.drools.runtime.rule;version="[5.5,6)"

As you can see, org.drools is still optional, but every subpackage become mandatory, preventing the org.activiti.engine bundle from being started without installing every needed drools bundle (and every other bundle which become required in 5.14, like junit subpackages).

ProcessDiagramGenerator.js: "startMessageEvent" should be "messageStartEvent"

The draw instructions for the message start event are defined in ProcessDiagramGenerator.js with the wrong dictionary key

    this.activityDrawInstructions["startMessageEvent"] = function(){

The JSON payload "messageStartEvent" is used not "startMessageEvent". E.g:

{
         "activityId":"messagestartevent1",
         "properties":{
            "name":"Start",
            "type":"messageStartEvent"
         },
         "x":47,
         "y":321,
         "width":35,
         "height":35
      },

https://github.com/Activiti/Activiti/blob/activiti-5.12/modules/activiti-webapp-explorer2/src/main/webapp/diagram-viewer/js/ProcessDiagramGenerator.js#L40

Parsing BPMN2 prefix on Documentation element.

Hi everyone.

I have been trying to import a BPMN model without any success and I already know why. Given the following model excerpt:

<bpmn2:userTask id="UserTask_1" name="User Task 1">
  <bpmn2:documentation><![CDATA[dasadda&]]></bpmn2:documentation>

Activiti cannot parse this, however if I delete bpmn2 prefix from documentation element, Activiti parses it.

My question is. Is this known? Shouldn't bpmn2 prefix be allowed on documentation element..

I haven't checked yet whether this issue is happening with other elements, but I'll investigate.

Thanks in advance.
Rui Domingues

Bug in SqlMapFiles

for version 5.13
User.xml line 107:
${prefix} ACT_RU_IDENTITYLINK
a space redundance, need be '${prefix}ACT_RU_IDENTITYLINK'
and Group.xml line 104:
the same issue

and use: grep -R "${prefix} " *
the file: ProcessDefinition.xml also found

a deadlock occurs between threads,can't release db connection

Hello,
in lifecycle of command, engine ofen will create sub command with new transaction(eg. IdGenerator, FailJobListener) before close parent command connection.but when there is not free connection of connection pool, still wait but parent command hold connection won't be released, deadlock hanppened.
in my system, use mysql c3p0 connection pool max size 120, there's some probability coour deadlock in FiailJobListener, but after rolledback, connection is seemingly unuseful. so I move FiailJobListener after connection closed.

                            if (!contextReused) {
                context.close();
            }
            if (context instanceof FinalListener) {
                ((FinalListener) context).fireFinalListener();
            }

Regards
Hui Xie

I have an error in the ACT_HI_IDENTITYLINK

Found an error in the ACT_HI_IDENTITYLINK,
The user A is not involved in the process of B,
ACT_HI_IDENTITYLINK has recorded the relationship between A and B.
How did this happen? How to find the problem?

Delete comments doesn't work with PostgreSQL

Hi,

if I try to delete a comment I get the exception below. Actually I'm using Activiti 5.13, PostgreSQL 9.2 and postgresql_9.2-1002.jdbc4 as driver.

org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: org.postgresql.util.PSQLException: Unzulõssiger Wert f³r den Typ long : \x48616c6c6f.
### The error may exist in org/activiti/db/mapping/entity/Comment.xml
### The error may involve org.activiti.engine.impl.persistence.entity.CommentEntity.selectComment-Inline
### The error occurred while setting parameters
### SQL: select *      from ACT_HI_COMMENT      where ID_ = ?
### Cause: org.postgresql.util.PSQLException: Unzulõssiger Wert f³r den Typ long : \x48616c6c6f.
        at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)[138:org.mybatis.mybatis:3.2.2]
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107)[138:org.mybatis.mybatis:3.2.2]
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)[138:org.mybatis.mybatis:3.2.2]
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:62)[138:org.mybatis.mybatis:3.2.2]
        at org.activiti.engine.impl.db.DbSqlSession.selectById(DbSqlSession.java:306)[141:org.activiti.engine:5.13.0]
        at org.activiti.engine.impl.persistence.entity.CommentEntityManager.findComment(CommentEntityManager.java:64)[141:org.activiti.engine:5.13.0]
        at org.activiti.engine.impl.cmd.DeleteCommentCmd.execute(DeleteCommentCmd.java:46)[141:org.activiti.engine:5.13.0]
        at org.activiti.engine.impl.cmd.DeleteCommentCmd.execute(DeleteCommentCmd.java:28)[141:org.activiti.engine:5.13.0]
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)[141:org.activiti.engine:5.13.0]
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61)[141:org.activiti.engine:5.13.0]

Documentation for DeploymentBuilder is wrong

The javadoc for DeploymentBuilder indicate that the builder instance can be obtained from a RuntimeService, but it looks like createDeployment() is only implemented in the RepositoryService.

A builder instance can be obtained through org.activiti.engine.RuntimeService#createDeployment().

Problem deleting a tasks candidate groups when there are candidate users

If I have a task which has candidate users and candidate groups and I want to change them (using TaskService.deleteCandidateGroup()), I get a null error.

Debugging the code, we end up in org.activiti.engine.impl.persistence.entity.deleteIdentityLink(String userId, String groupId, String type).
The line of code with the issue is
if ((userId != null && userId.equals(identityLinkEntity.getUserId()))
|| (groupId != null && identityLinkEntity.getGroupId().equals(groupId))) {

, where the inner most if() compares:
groupId != null && identityLinkEntity.getGroupId().equals(groupId)

If we are looking at a candidate user link, identityLinkEntity.getGroupId() is null, so we get the error. Perhaps this line should be changed to compare in a similar fashion to the user comparison in the same if, i.e.

groupId != null && groupId.equals(identityLinkEntity.getGroupId()

Add some annotation to BpmnModel and FlowElement Class in bmpn-model project

i wrote this method to get BpmnModel of such ProcessDefinition:

1 @OverRide
2 public BpmnModel getBpmnModelResource(String processDefinitionId) {
3 ObjectMapper mapper = new ObjectMapper();
4 String path = serverConfig.getServicePath() + "repository/process-definitions/{processDefinitionId}/model";
5 UriComponents uriComponents = UriComponentsBuilder.newInstance().scheme("http").host(serverConfig.getServerIP()).
6 port(serverConfig.getServerPort()).path(path).build().expand(processDefinitionId);
7 String json = restTemplate.getForObject(uriComponents.toUri(), String.class);
8 try {
9 return mapper.readValue(json, BpmnModel.class);
10 } catch (IOException e) {
11 e.printStackTrace();
12 }
13 return null;
14 }

i got this exception in line 9:

INFO: XML driver implementation: com.thoughtworks.xstream.io.xml.StaxDriver
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "incomingFlows" (class org.activiti.bpmn.model.FlowElement), not marked as ignorable (8 known properties: , "xmlColumnNumber", "extensionElements", "attributes", "executionListeners", "documentation", "id", "name", "xmlRowNumber"])
at [Source: java.io.StringReader@558930e2; line: 1, column: 670](through reference chain: org.activiti.bpmn.model.BpmnModel["processes"]->org.activiti.bpmn.model.Process["flowElements"]->org.activiti.bpmn.model.FlowElement["incomingFlows"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:79)
....

after that i copy the BpmnModel, FlowElement,... and related class from bpmn model project to my source and refactor them.
then add @JsonIgnoreProperties(ignoreUnknown = true) annotation to BpmnModel and FlowElement:

@JsonIgnoreProperties(ignoreUnknown = true)
public class BpmnModel {
...


@JsonIgnoreProperties(ignoreUnknown = true)
public class FlowElement extends BaseElement implements HasExecutionListeners {
...

and then everything is ok.

The changes made are correct?
If possible, be placed in the project source code.

Activiti Kepler Graphit 0.9.2 Null Pointer Exceptions

So i wanted to learn activiti and had already an eclipse 4.3 (Kepler) installation with an IBM JDK v9 under the hood. So i installed activiti and told eclipse to use the incubation of graphiti.

Then i got strange behaviour in the source linking (Not opening the source files librarys etc.), tried out the source linking in the type hirarchy and got null pointer exception. So i looked into the logs of Eclipse and saw multiples of those messages, corresponding to clicks which i made on types of different librarys (junit, activiti etc.)

I know that setup is not officially supported, but i thought maybe it is helpful for you anyway.

Sincerly

fandji

ERROR_MESSAGE

!ENTRY org.eclipse.jface 4 2 2013-08-23 12:53:25.200
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at org.activiti.designer.eclipse.editor.ActivitiDiagramMatchingStrategy.matches(ActivitiDiagramMatchingStrategy.java:20)
at org.eclipse.ui.internal.WorkbenchPage.checkEditor(WorkbenchPage.java:2227)
at org.eclipse.ui.internal.WorkbenchPage.findEditors(WorkbenchPage.java:2196)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3070)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3042)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3024)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3020)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2984)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2975)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyViewPart$15.open(TypeHierarchyViewPart.java:1478)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:47)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:607)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

ECLIPSE_VERSIONs

Version: Kepler Release
Build id: 20130614-0229

Activiti Eclipse BPMN 2.0 Designer 5.12.0 org.activiti.designer.feature.feature.group Activiti

Graphiti (Incubation)   0.9.2.v20130211-0913    org.eclipse.graphiti.feature.feature.group  Eclipse Modeling Project

Eclipse IDE for Java EE Developers 2.0.0.20130613-0530 epp.package.jee null

unique constraint (ACT_UNIQ_HI_BUS_KEY) violations when start

I am not sure if it is a valid issue.
But when I start more than one processes instances aginst a deployed process definition using ProcessInstance startProcessInstanceByKey(String processDefinitionKey, Map<String, Object> variables);

It complains bout unique constraint (ACT_UNIQ_HI_BUS_KEY) violations.

Test code:

            ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
        RepositoryService repositoryService = processEngine.getRepositoryService();
        repositoryService.createDeployment()
          .addClasspathResource("org/activiti/test/VacationRequest.bpmn20.xml")
          .deploy();

        Map<String, Object> variables = new HashMap<String, Object>();
        variables.put("employeeName", "Kermit");
        variables.put("numberOfDays", new Integer(4));
        variables.put("vacationMotivation", "I'm really tired!");
        processEngine.getRuntimeService().startProcessInstanceByKey("vacationRequest", variables);
        processEngine.getRuntimeService().startProcessInstanceByKey("vacationRequest", variables);

Exception stack trace

SQL: insert into ACT_HI_PROCINST (         ID_,         PROC_INST_ID_,         BUSINESS_KEY_,         PROC_DEF_ID_,         START_TIME_,         END_TIME_,         DURATION_,         START_USER_ID_,         START_ACT_ID_,         END_ACT_ID_,         SUPER_PROCESS_INSTANCE_ID_,         DELETE_REASON_       ) values (         ?,         ?,         ?,         ?,         ?,         ?,         ?,         ?,         ?,         ?,         ?,         ?       )
### Cause: cubrid.jdbc.driver.CUBRIDException: Operation would have caused one or more unique constraint violations. INDEX act_uniq_hi_bus_key(B+tree: 0|312|1300) ON CLASS act_hi_procinst(CLASS_OID: 0|970|4). key: {'vacationRequest:3:203', NULL}(OID: 0|1040|4).

it's probably that the following DDL

  alter table ACT_HI_PROCINST
    add constraint ACT_UNIQ_HI_BUS_KEY
    unique(PROC_DEF_ID_, BUSINESS_KEY_);

in activiti.db.create.history is unnecessary or what?

OSGI ProcessEngineFactoryWithELResolver prevents resolvers from running

When trying to resolve a HashMap property the following exception is returned

2014-04-24 10:35:17,772 | WARN  | process/routing] | AggregateProcessor               | rg.apache.camel.util.CamelLogger  224 | 73 - org.apache.camel.camel-core - 2.12.3 | Error processing aggregated exchange. Exchange[JmsMessage[JmsMessageID: ID:localhost-45668-1398139515923-90:18:1:1:4]]. Caused by: [org.activiti.engine.ActivitiException - Unknown property used in expression: ${!empty(params.value)}]
org.activiti.engine.ActivitiException: Unknown property used in expression: ${!empty(params.value)}
...
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Could not find property value in class java.util.HashMap
        at org.activiti.engine.impl.javax.el.BeanELResolver.toBeanProperty(BeanELResolver.java:627)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.javax.el.BeanELResolver.getValue(BeanELResolver.java:298)[163:org.activiti.engine:5.15.0]
...

The order of the ELResolvers differs from other parts of the code changing to the following resolves the issue:

      compositeElResolver.add(new VariableScopeElResolver(variableScope));
      if (blueprintContextELResolver != null) {
        compositeElResolver.add(blueprintContextELResolver);
      }
      compositeElResolver.add(blueprintELResolver);
      compositeElResolver.add(new ArrayELResolver());
      compositeElResolver.add(new ListELResolver());
      compositeElResolver.add(new MapELResolver());
      compositeElResolver.add(new BeanELResolver());

see http://forums.activiti.org/content/compositeelresolver-order-processenginefactorywithelresolverjava for more details

OSGI BundleScriptEngineResolver does not handle comments or spaces in META-INF/services/javax.script.ScriptEngineFactory

The OSGI bundle of mvn:org.apache.commons/commons-jexl/2.0.1 contains the following META-INF/services/javax.script.ScriptEngineFactory file

#
#  Licensed to the Apache Software Foundation (ASF) under one or more
#  contributor license agreements.  See the NOTICE file distributed with
#  this work for additional information regarding copyright ownership.
#  The ASF licenses this file to You under the Apache License, Version 2.0
#  (the "License"); you may not use this file except in compliance with
#  the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
#

org.apache.commons.jexl2.scripting.JexlScriptEngineFactory

When running a script the following Exception occurs

java.lang.ClassNotFoundException: #  not found by org.apache.commons.jexl [131]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)[org.apache.felix.framework-4.0.3.jar:]
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)[org.apache.felix.framework-4.0.3.jar:]
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)[org.apache.felix.framework-4.0.3.jar:]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)[:1.6.0_30]
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723)[org.apache.felix.framework-4.0.3.jar:]
        at org.apache.felix.framework.Bundl
eImpl.loadClass(BundleImpl.java:926)[org.apache.felix.framework-4.0.3.jar:]
        at org.activiti.osgi.Extender$BundleScriptEngineResolver.resolveScriptEngine(Extender.java:367)[164:activiti-osgi:5.15.0]
        at org.activiti.osgi.Extender.resolveScriptEngine(Extender.java:314)[164:activiti-osgi:5.15.0]
        at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:54)[164:activiti-osgi:5.15.0]
        at org.activiti.osgi.OsgiScriptingEngines.evaluate(OsgiScriptingEngines.java:47)[164:activiti-osgi:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.execute(ScriptTaskActivityBehavior.java:63)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:54)[163:org.activiti.engine:5.15.0]
       at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:66)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:402)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.takeAll(ExecutionEntity.java:496)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior.leave(ParallelMultiInstanceBehavior.java:141)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior.lastExecutionEnded(MultiInstanceActivityBehavior.java:109)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityEnd.eventNotificationsCompleted(AtomicOperationActivityEnd.java:81)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.end(ExecutionEntity.java:362)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.NoneEndEventActivityBehavior.execute(NoneEndEventActivityBehavior.java:24)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:66)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:402)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:105)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.IntermediateCatchEventActivityBehavior.signal(IntermediateCatchEventActivityBehavior.java:27)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:373)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.event.AbstractEventHandler.handleEvent(AbstractEventHandler.java:67)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.event.MessageEventHandler.handleEvent(MessageEventHandler.java:43)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity.processEventSync(EventSubscriptionEntity.java:82)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity.eventReceived(EventSubscriptionEntity.java:73)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cmd.MessageEventReceivedCmd.execute(MessageEventReceivedCmd.java:82)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cmd.MessageEventReceivedCmd.execute(MessageEventReceivedCmd.java:33)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd.execute(NeedsActiveExecutionCmd.java:55)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.RuntimeServiceImpl.messageEventReceived(RuntimeServiceImpl.java:317)[163:org.activiti.engine:5.15.0]
        at com.telflow.process.listeners.NotifyProcessComplete.notify(NotifyProcessComplete.java:46)[211:telflow-process:7.0.0]
        at org.activiti.engine.impl.delegate.ExecutionListenerInvocation.invoke(ExecutionListenerInvocation.java:34)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.notify(ClassDelegate.java:71)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:42)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:66)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:402)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:105)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.CallActivityBehavior.completed(CallActivityBehavior.java:115)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessEnd.eventNotificationsCompleted(AtomicOperationProcessEnd.java:68)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityEnd.eventNotificationsCompleted(AtomicOperationActivityEnd.java:64)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.end(ExecutionEntity.java:362)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.NoneEndEventActivityBehavior.execute(NoneEndEventActivityBehavior.java:24)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:66)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:402)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:105)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:45)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:53)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:344)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.CallActivityBehavior.execute(CallActivityBehavior.java:85)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:66)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:89)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:566)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:561)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:402)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:105)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:54)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.bpmn.behavior.IntermediateCatchEventActivityBehavior.signal(IntermediateCatchEventActivityBehavior.java:27)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:373)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.event.AbstractEventHandler.handleEvent(AbstractEventHandler.java:67)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.event.MessageEventHandler.handleEvent(MessageEventHandler.java:43)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity.processEventSync(EventSubscriptionEntity.java:82)[163:org.activiti.engine:5.15.0]
       at org.activiti.engine.impl.persistence.entity.EventSubscriptionEntity.eventReceived(EventSubscriptionEntity.java:73)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.jobexecutor.ProcessEventJobHandler.execute(ProcessEventJobHandler.java:40)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:84)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:29)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:73)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)[163:org.activiti.engine:5.15.0]
        at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:52)[163:org.activiti.engine:5.15.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)[:1.6.0_30]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.6.0_30]
        at java.lang.Thread.run(Thread.java:701)[:1.6.0_30]

Comments and blank lines within the file should be ignored.

WildFly 8.1 redeploy app with embedded Activiti

WildFly 8.1.0.Final redeploy app with embedded Activiti 5.15.1 with Spring (3.2.7) activiti.cfg,xml configuration cause exception:

org.activiti.engine.ActivitiException: Could not find an implementation of the org.activiti.cdi.spi.ProcessEngineLookup service returning a non-null processEngine.

When deploying first time on clean server Activiti-cdi instance starts Ok, but on redeploy
protected static boolean isInitialized variable in class org.activiti.engine.ProcessEngines stay equals true, so method

  /** obtain a process engine by name.  
   * @param processEngineName is the name of the process engine or null for the default process engine.  */
  public static ProcessEngine getProcessEngine(String processEngineName) {
    if (!isInitialized) {
      init();
    }
    return processEngines.get(processEngineName);
  }

not call init method which can add new process engine, so exception thowns.

BUG of "Timer Boundary Event“

In our test, "Timer Boundary Event“ nevr fire when it is attached to a service task(for example a java
service task);

Following is BPM description file

PT5S

Service class code

public class Service implements java.io.Serializable {

/**
 * 
 */
private static final long serialVersionUID = 6989555427695813564L;

public void firstMethod() {
    System.out.println("call firstMethod");
    try {
        Thread.sleep(10*1000);
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    System.out.println("end of firstMethod");
}

public void secondMethod() {
    System.out.println("call secondMethod");
}


public void thirdMethod() {
    System.out.println("call thirdMethod");
}

}

DatabaseEventLogger: ACT_EVT_LOG auto_increment fails on HSQLDB

8e01f79
introducing DatabaseEventLogger added table ACT_EVT_LOG LOG_NR_ bigint auto_increment and that fails on HSQLDB and auto_increment is not supported

...nested exception is org.activiti.engine.ActivitiException: couldn't create db schema: create table ACT_EVT_LOG (
LOG_NR_ bigint auto_increment,
TYPE_ varchar(64),
PROC_DEF_ID_ varchar(64),
PROC_INST_ID_ varchar(64),
EXECUTION_ID_ varchar(64),
TASK_ID_ varchar(64),
TIME_STAMP_ timestamp not null,
USER_ID_ varchar(255),
DATA_ longvarchar,
LOCK_OWNER_ varchar(255),
LOCK_TIME_ timestamp,
IS_PROCESSED_ bit default 0,
primary key (LOG_NR_)
)

Main navigation menu is broken in IE 7

mainNav

UI issue, As capture image show, The Activiti Explorer icon width is much smaller than in other Browsers, and it's getting smaller and smaller after each click on the menu until width is about 32px

Activiti Explorer Navigators

addNavigator(new ActiveProcessDefinitionNavigator());
addNavigator(new SuspendedProcessDefinitionNavigator());

above lines are missing in the afterPropertiesSet() method in the NavigatorManager class. With out these, bookmarking the suspended and active definitions is not working.

Along with the above changes, the SuspendedProcessDefinitionNavigator is trying to display the ActiveProcessDefinition page, I guess the correct code should be..

showSuspendedProcessDefinitionsPage()

Multi Instance support in KISBPM editor for Sub Process

It seems the multi instance support is limited to Activity instances only when we create a process via KISBPM process editor. Without this support use case of having multiple activities running in the same loop is not possible.

Misleading Exception Message in TaskOperationResource.java (rest api)

The problem is that the following try catch block just throws "Did not receive the operation parameters" regardless of which exception actually occurred.

For example: it's also possible that the catch block is visited when you try to claim a completed task, that would be completely unrelated to missing "operation parameters".

In the end the rest server returns "Did not receive the operation parameters" to the client.
This leads to misconceptions like in this thread:
http://forums.activiti.org/en/viewtopic.php?f=6&t=2486

Please mind the other exceptions that can occur in the try block,
or just forward the actual exception, so that rest clients get a useful response.

try {
  Map<String, Object> variables = new HashMap<String, Object>();
  if (entity != null) {
    String startParams = entity.getText();
    if (StringUtils.isNotEmpty(startParams)) {
      JsonNode startJSON = new ObjectMapper().readTree(startParams);
      Iterator<String> itName = startJSON.getFieldNames();
      while(itName.hasNext()) {
        String name = itName.next();
        JsonNode valueNode = startJSON.path(name);
        if (valueNode.isBoolean()) {
          variables.put(name, valueNode.getBooleanValue());
        } else if (valueNode.isLong()) {
          variables.put(name, valueNode.getLongValue());
        } else if (valueNode.isDouble()) {
          variables.put(name, valueNode.getDoubleValue());
        } else if (valueNode.isTextual()) {
          variables.put(name, valueNode.getTextValue());
        } else if("true".equals(valueNode.getTextValue()) || "false".equals(valueNode.getTextValue())) {
          variables.put(name, Boolean.valueOf(valueNode.getTextValue()));
        } else {
          variables.put(name, valueNode.getValueAsText());
        }
      }
    }
  }

  if ("claim".equals(operation)) {
    ActivitiUtil.getTaskService().claim(taskId, loggedInUser);
  } else if ("unclaim".equals(operation)) {
    ActivitiUtil.getTaskService().claim(taskId, null);
  } else if ("complete".equals(operation)) {
    variables.remove("taskId");
    ActivitiUtil.getTaskService().complete(taskId, variables);
  } else {
    throw new ActivitiException("'" + operation + "' is not a valid operation");
  }

} catch(Exception e) {
  throw new ActivitiException("Did not receive the operation parameters", e);
}

regards the following file:
https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-rest2/src/main/java/org/activiti/rest/api/task/TaskOperationResource.java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.