CMDBuild Forum

Automated E-mail Issueing

Hi,

In CMDBuild configuration there is an option to setup incoming and outgoing mail servers. Is there any functionality in CMDBuild to send e-mails on based on certain triggers?

For example, I hold expiry dates of software licenses and hardware warranties in the CMDB. Can I get CMDB to automatically issue an e-mail to an e-mail address notifying me that I have two weeks before X licenses expire?

Thanks,

Jamie

Hi Jamie,
CMDBuild could send email only during a process.
If you want to receive an email for all the software whose licence expires in x days from now, you can set up a process that checks which are these licences, and than that send an email containing the information you wanted.
Then you can schedule this process to be executed every day.
 
Best regards.

Previously Tecnoteca wrote:

Hi Jamie,
CMDBuild could send email only during a process.
If you want to receive an email for all the software whose licence expires in x days from now, you can set up a process that checks which are these licences, and than that send an email containing the information you wanted.
Then you can schedule this process to be executed every day.
 
Best regards.

 

Hello,

how do i set up a process? i cant find anything with that name?!

Hello,

there is a whole manual dedicated to the workflow configuration:
    http://www.cmdbuild.org/en/documentazione/manuali/workflow-manual

If it may be helpful to you, you can download an example of a workflow already configured from the online demo (Administration Module - Workflow - XPDL - Download XPDL template).
After the release of version 2.1, however, we choose which features to include in version 2.2 (first quarter, 2014) and there will also be a new widget to send email from a normal class.
CMDBuild Team

Previously Tecnoteca wrote:

Hello,

there is a whole manual dedicated to the workflow configuration:
    http://www.cmdbuild.org/en/documentazione/manuali/workflow-manual

If it may be helpful to you, you can download an example of a workflow already configured from the online demo (Administration Module - Workflow - XPDL - Download XPDL template).
After the release of version 2.1, however, we choose which features to include in version 2.2 (first quarter, 2014) and there will also be a new widget to send email from a normal class.
CMDBuild Team

Okay i just applied for the online demo to check this out.

i really just want a notification from expiring licenses.. is there no "easy" and not that bloated way to realize that?

The new features we’re working on for the new version 2.2 include also the possibility to define some “checkon the data from the user interface, which are triggered and send notifications via e-mail.
A typical example of using this new mechanism is exactly the notification of expiring of SW licenses or HW warranties.
CMDBuild Version 2.2 will be released in the first quarter 2014.
CMDBuild Team

Nick,
 
What wasn't actually clear to me when I began defining automated processes was the need to understand a bit of java, how to read the API and also work with objects.
 
Since then I've picked up some books on object-orientated coding and bits on java. 
 
To get the most from CMDBuild, you really need to be able to write basic java, understand technical infrastructure, be able to work with SQL and procedures plus be able to work with the webservice - again requires some knowledge of coding.
 
This isn't obvious from Tecnoteca's pages here, but those skills will allow you to do pretty much anything with the application. 
 
Cheers,
J
 
Previously Tecnoteca wrote:
The new features we're working on for the new version 2.2 include also the possibility to define some "check" on the data from the user interface, which are triggered and send notifications via e-mail.
A typical example of using this new mechanism is exactly the notification of expiring of SW licenses or HW warranties.
CMDBuild Version 2.2 will be released in the first quarter 2014.
CMDBuild Team

 

Previously Tecnoteca wrote:

Hello,

there is a whole manual dedicated to the workflow configuration:
    http://www.cmdbuild.org/en/documentazione/manuali/workflow-manual

If it may be helpful to you, you can download an example of a workflow already configured from the online demo (Administration Module - Workflow - XPDL - Download XPDL template).
After the release of version 2.1, however, we choose which features to include in version 2.2 (first quarter, 2014) and there will also be a new widget to send email from a normal class.
CMDBuild Team

 

Hi there,

i am trying to get workflows running.. but even if i create a simple workflow with start -> activity (does nothing) -> end i get an exeption in cmdbuild.log

 

INFO  2013-09-12 08:47:00 [workflow] Starting scheduled process Space

INFO  2013-09-12 08:47:00 [workflow] getting process classe with name 'Space'

ERROR 2013-09-12 08:47:00 [org.quartz.core.JobRunShell] Job DEFAULT.50 threw an unhandled Exception:

java.lang.IndexOutOfBoundsException: position (0) must be less than the number of elements that remained (0)

        at com.google.common.collect.Iterators.get(Iterators.java:919)

        at com.google.common.collect.Iterables.get(Iterables.java:737)

        at com.google.common.collect.FluentIterable.get(FluentIterable.java:386)

        at org.cmdbuild.workflow.DataViewWorkflowPersistence.findProcessClass(DataViewWorkflowPersistence.java:196)

        at org.cmdbuild.workflow.DefaultWorkflowEngine.findProcessClassByName(DefaultWorkflowEngine.java:152)

        at org.cmdbuild.logic.WorkflowLogic.startProcess(WorkflowLogic.java:256)

        at org.cmdbuild.services.scheduler.job.StartProcessJob.execute(StartProcessJob.java:30)

        at org.cmdbuild.services.scheduler.quartz.QuartzJob.execute(QuartzJob.java:17)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

ERROR 2013-09-12 08:47:00 [org.quartz.core.ErrorLogger] Job (DEFAULT.50 threw an exception.

org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IndexOutOfBoundsException: position (0) must be less than the number of elements that remained (0)]

        at org.quartz.core.JobRunShell.run(JobRunShell.java:227)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

Caused by: java.lang.IndexOutOfBoundsException: position (0) must be less than the number of elements that remained (0)

        at com.google.common.collect.Iterators.get(Iterators.java:919)

        at com.google.common.collect.Iterables.get(Iterables.java:737)

        at com.google.common.collect.FluentIterable.get(FluentIterable.java:386)

        at org.cmdbuild.workflow.DataViewWorkflowPersistence.findProcessClass(DataViewWorkflowPersistence.java:196)

        at org.cmdbuild.workflow.DefaultWorkflowEngine.findProcessClassByName(DefaultWorkflowEngine.java:152)

        at org.cmdbuild.logic.WorkflowLogic.startProcess(WorkflowLogic.java:256)

        at org.cmdbuild.services.scheduler.job.StartProcessJob.execute(StartProcessJob.java:30)

        at org.cmdbuild.services.scheduler.quartz.QuartzJob.execute(QuartzJob.java:17)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)

        ... 1 more

 

I Really dont understand whats going wrong -.- can you guys help me pls?

Previously Jamie wrote:

Hi,

In CMDBuild configuration there is an option to setup incoming and outgoing mail servers. Is there any functionality in CMDBuild to send e-mails on based on certain triggers?

For example, I hold expiry dates of software licenses and hardware warranties in the CMDB. Can I get CMDB to automatically issue an e-mail to an e-mail address notifying me that I have two weeks before X licenses expire?

Thanks,

Jamie

 

Hi! I was wondering if this was actually done... I'm trying to get a simple notification when an expiration date is close, but I still do not find a way (without using the workflow), even if it is an example in the documentation pictures! :)

 

Thank you in advance if anybody has any news on this.

 

mari

Hi!

 
Does anyone know how to accomplish what Jamie was trying to do (in CMDBuild)? I mean sending an automated email x days before warranty expires.
I'm not sure if I should use an asynchronous event for doing that.
 
Thanks!