Skip to content

Commit

Permalink
subject improved
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Apr 27, 2016
1 parent 92cec87 commit ef2818f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/impl/java/org/wyona/yanel/impl/workflow/EmailAction.java
Expand Up @@ -103,10 +103,11 @@ protected String getSenderAddress(WorkflowableV1 workflowable, Workflow workflow

/**
* Get subject
* @param workflowable Resource which has implemented WorkflowableV1
*/
protected String getSubject(WorkflowableV1 workflowable, Workflow workflow, String revision) throws WorkflowException {
Resource resource = (Resource) workflowable;
return "[" + resource.getRealm().getName() + "] The workflow state of the resource '" + resource.getPath() + "' has been changed: " + workflowable.getWorkflowState(revision);
return "[" + resource.getRealm().getName() + "] The workflow state of '" + new java.io.File(resource.getPath()).getName() + "' has been changed to '" + workflowable.getWorkflowState(revision) + "'";
}

/**
Expand Down

0 comments on commit ef2818f

Please sign in to comment.