mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added a new REST method, publishing-events-query.post which allows you to query for publishing events based on id or published nodes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package org.alfresco.repo.workflow.jbpm;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.service.cmr.workflow.WorkflowException;
|
||||
@@ -55,11 +56,18 @@ public class AlfrescoCreateTimerAction extends CreateTimerAction
|
||||
if (dueDateExpression.startsWith("#{"))
|
||||
{
|
||||
Object result = JbpmExpressionEvaluator.evaluate(dueDateExpression, executionContext);
|
||||
if (!(result instanceof Date))
|
||||
if (result instanceof Date)
|
||||
{
|
||||
dueDate = (Date)result;
|
||||
}
|
||||
else if(result instanceof Calendar)
|
||||
{
|
||||
dueDate = ((Calendar)result).getTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new WorkflowException("duedate expression must evaluate to a date");
|
||||
}
|
||||
dueDate = (Date)result;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user