public class EureCustomAction extends ActionExecuterAbstractBase {
protected void executeImpl(Action arg0, NodeRef arg1) {
…
}
}
fügt diesen Code ein:
Set<ExecutedRuleData> executedRules = (Set<ExecutedRuleData>) org.alfresco.repo.transaction.AlfrescoTransactionSupport.getResource("RuleServiceImpl.ExecutedRules");
Iterator<ExecutedRuleData> it = executedRules.iterator();
while(it.hasNext()){
ExecutedRuleData erd = it.next();
NodeRef nodeRef = erd.getActionableNodeRef();
if(nodeRef!=null && nodeRef.equals(arg1)){
List<String> types = erd.getRule().getRuleTypes();
Iterator<String> ruleIt = types.iterator();
while(ruleIt.hasNext()) {
System.out.println("ExecutedRule: [" + ruleIt.next() + "]");
}
}
}
in ruleIt.next steht z.B. sowas wie OUTBOUND,INBOUND oder UPDATE.Archive content from product discussions in German.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.