简体   繁体   English

如何在 Alfresco Process 服务中获取当前的 activitiName (Activti 7)

[英]How to get the Current activitiName in Alfresco Process services (Activti 7)

In Alfresco APS 2.3 version, we have one upgrade ie, Changing ActivitiExecution class to Delegate Execution class.在 Alfresco APS 2.3 版本中,我们进行了一次升级,即将 ActivitiExecution 类更改为 Delegate Execution 类。

Both the classes has execute() method.这两个类都有 execute() 方法。

Inside the execute() method of ActivitiExecution, we have method called "getCurrentActivitiName()"在 ActivitiExecution 的 execute() 方法中,我们有一个名为“getCurrentActivitiName()”的方法

But inside the execute() method of DelegateExecution,we don't have this method called "getCurrentActivitiName()".但是在 DelegateExecution 的 execute() 方法中,我们没有这个名为“getCurrentActivitiName()”的方法。

How to get the Current activitiName in Alfresco Process services (Activti 7)without this method in DelegateExecution class?如何在 DelegateExecution 类中没有此方法的情况下获取 Alfresco Process 服务(Activti 7)中的当前 activitiName?

Try by casting this way.尝试以这种方式投射。

ActivityExecution activityExecution =(ActivityExecution) delegateExecution; ActivityExecution activityExecution =(ActivityExecution) 委托执行;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM