package com.blueland.bpm.engine.core.service.impl;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

import com.blueland.bpm.common.util.SysConfig;

public class ProcessDefinitionResourceOtherCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
    	return (SysConfig.getValue("presource.type") != null)&&(SysConfig.getValue("presource.type").equals("processDefinitionResourceOther"));
    }
}