如何获得Alfresco Action状态

编程入门 行业动态 更新时间:2024-10-10 08:20:27
本文介绍了如何获得Alfresco Action状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有问题。我有Alfresco4。我要为特定文件夹创建一个规则(用于INBOUND,OUTBOUND,UPDATE)和操作。但是,当我将动作挂接到Java类(从ActionExecuterAbstractBase扩展)时,我不知道如何获取节点的状态(发生了什么-删除,修改或创建了节点)。解决此问题的一种方法-比较节点中的upload_date和Modifyd_date属性。但这不好。如果有人知道该怎么做,请回答。 谢谢。

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.

推荐答案

有2种方法: 1)创建3个类,

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

2)我只想为您的操作添加一个额外的参数,例如状态。然后按照入站规则设置入站等。然后,您可以阅读action.getParameterValue(检查自定义操作Wiki )。

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).

更多推荐

如何获得Alfresco Action状态

本文发布于:2023-11-22 22:20:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619183.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何获得   状态   Alfresco   Action

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!