mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-24 08:08:10 +08:00
bug #I5AVD2 新版本2.7.0中,全局切面中拿不到组件的别名了
This commit is contained in:
@@ -7,12 +7,14 @@ import com.yomahub.liteflow.slot.Slot;
|
||||
|
||||
public class CmpAspect implements ICmpAroundAspect<DefaultContext> {
|
||||
@Override
|
||||
public void beforeProcess(String nodeId, DefaultContext contextBean) {
|
||||
contextBean.setData(nodeId, "before");
|
||||
public void beforeProcess(String nodeId, Slot<DefaultContext> slot) {
|
||||
DefaultContext context = slot.getContextBean();
|
||||
context.setData(nodeId, "before");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterProcess(String nodeId, DefaultContext contextBean) {
|
||||
contextBean.setData(nodeId, StrUtil.format("{}_{}", contextBean.getData(nodeId), "after"));
|
||||
public void afterProcess(String nodeId, Slot<DefaultContext> slot) {
|
||||
DefaultContext context = slot.getContextBean();
|
||||
context.setData(nodeId, StrUtil.format("{}_{}", context.getData(nodeId), "after"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user