How to get Alfresco Action status

2019-08-19 04:55发布

I have a problem. I have Alfresco 4. I'm create a rule(for INBOUND, OUTBOUND, UPDATE) and action for my scpecific folder. But when I hook the action in my java class(extending from ActionExecuterAbstractBase) I don't know, how to get status for node(what's happen - deleted, modified or created node). One way for resolved this problem - it's a comparison uploaded_date and modified_date properties from a node. But it's not good. If anyone know how to do it, please, answer. Thank you.

标签: java alfresco
1条回答
狗以群分
2楼-- · 2019-08-19 05:06

2 ways to do this: 1) create 3 classes, which gets triggered by the right type.

2) I would just ad an extra parameter to your action, like status. And at the inbound rule just set inbound, etc. Then you can read the action.getParameterValue (check the Custom Actions Wiki).

查看更多
登录 后发表回答