cancel
Showing results for 
Search instead for 
Did you mean: 

Random tasks generating on new install

john7201
Champ in-the-making
Champ in-the-making
Hi,

I've installed Alfresco CE 4.2.c on a CentOS 6.4 64-bit server.  I've updated Alfresco to use MySql Server (5.169) as the database .

I've also downloaded and installed Activity 5.13 to the same server and configured it to use the same MySql database.  (By installed, I mean that I copied to explorer and rest .war files to the Alfresco Tomcat home).

Activiti Explorer seems to run fine, but random tasks keep showing up in Kermit's task list (Inbox).  To date there are 93 in the inbox and another 262 queued (I've added no new users or processes).  Most are actual processes that came packaged with the Activiti distribution, but some are just random Latin phrases (such as "ut elit mollit ipsum nostrud est" and "ut elit mollit ipsum nostrud est").  I had emptied the Inbox and Queue once before but more were created.

Any ideas on what is happening?  Is there a way to delete these tasks from the database directly?  (The Latin ones in the Inbox generate a warning "UserID is null" message and I cannot do anyting with those via the Explorer interface.

Thanks is advance for your help…

John B
9 REPLIES 9

vercettistate
Champ in-the-making
Champ in-the-making
I have this annoying problem too. If anyone knows what is going on… My DB is SQLServer 2012.

Thanks in advance.

vercettistate
Champ in-the-making
Champ in-the-making
I figured out a possible solution. If you use the REST API to deploy process you must delete the following lines in WEB-INF/classes/activiti-context.xml, inside activiti-rest.war

<code>
<bean id="demoDataGenerator" class="org.activiti.rest.demo.DemoDataGenerator"
  init-method="init">
  <property name="processEngine" ref="processEngine" />
  <property name="createDemoUsersAndGroups" value="true" />
        <property name="createDemoProcessDefinitions" value="true" />
        <property name="createDemoModels" value="true" />
</bean>
</code>

This lines are responsable to generate demo/random data in the database.
It works here. Hope this helps.

jbarrez
Star Contributor
Star Contributor

john7201
Champ in-the-making
Champ in-the-making
Thanks.  I do remember seeing those instructions when I setup the database - and I indeed forgot to make those changes.  Any advice on removing the generated data.  I can complete the regular process tasks to get them output of the inbox/queue, but the ones with the Latin titles throw the 'Warning: UserID is null' message and I cannot take any action on them.
Thanks again for your help….

john7201
Champ in-the-making
Champ in-the-making
Was able to delete demo tasks directly through MySql.  Set all demo options to false in both the activiti-standalone-context.xml and activiti-context.xml.  Demo tasks no longer show up, but the ones with the random Latin phrases still get generated with each restart.  Any other thoughts?
Thanks…

jbarrez
Star Contributor
Star Contributor
Did you do the same for the REST web app (if you have it running?)

bmarkmann
Champ in-the-making
Champ in-the-making
If you do disable the demo content creation, is there any way to create a user before starting up?  (ie. if you don't have kermit / fozzy / gonzo, how do you log in when you first fire it up?)

I was able to get around it by turning off the demo content creation except for demo users, and then creating other users before getting rid of the demo users and groups – but seems like there should be a simpler way.

bdietz
Champ in-the-making
Champ in-the-making
I have the same issue. I was able to deactivate the demo data creation for the processes and models, but these random tasks are still created with every startup. They cause exceptions in the explorer when opened and I can't even delete the in my MySQL Workbench. Is there a way to prevent their creation?

Thanks for your help!

frederikherema1
Star Contributor
Star Contributor
Remove the demoDataGenerator bean from the applicationContext.xml file in the webapp…