本文整理汇总了Java中com.atlassian.jira.issue.IssueImpl类的典型用法代码示例。如果您正苦于以下问题:Java IssueImpl类的具体用法?Java IssueImpl怎么用?Java IssueImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IssueImpl类属于com.atlassian.jira.issue包,在下文中一共展示了IssueImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import com.atlassian.jira.issue.IssueImpl; //导入依赖的package包/类
@Override
public void validate(Map transientVars, Map args, PropertySet ps) throws InvalidInputException {
Issue issue = (Issue) transientVars.get("issue");
String script = (String) args.get(FIELD);
Map<String, Object> parameters = new HashMap<>();
parameters.put("issue", issue);
parameters.put("issueImpl", IssueImpl.class.cast(issue));
parameters.put("transientVars", transientVars);
parameters.put("args", args);
parameters.put("ps", ps);
try {
scriptManager.executeScript(script, parameters);
} catch (Exception ex) {
log.error("Error", ex);
throw new InvalidInputException(ex);
}
}
示例2: passesCondition
import com.atlassian.jira.issue.IssueImpl; //导入依赖的package包/类
@Override
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException {
Issue issue = getIssue(transientVars);
String script = (String) args.get(GroovioliFunctionFactory.FIELD);
Map<String, Object> parameters = new HashMap<>();
parameters.put("issue", issue);
parameters.put("issueImpl", IssueImpl.class.cast(issue));
parameters.put("transientVars", transientVars);
parameters.put("args", args);
parameters.put("ps", ps);
try {
return (Boolean) scriptManager.executeScript(script, parameters);
} catch (Exception ex) {
log.error("Error", ex);
throw ex;
}
}
示例3: execute
import com.atlassian.jira.issue.IssueImpl; //导入依赖的package包/类
@Override
public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {
MutableIssue issue = getIssue(transientVars);
String script = (String) args.get(FIELD);
Map<String, Object> parameters = new HashMap<>();
parameters.put("issue", issue);
parameters.put("issueImpl", IssueImpl.class.cast(issue));
parameters.put("transientVars", transientVars);
parameters.put("args", args);
parameters.put("ps", ps);
try {
scriptManager.executeScript(script, parameters);
} catch (Exception ex) {
log.error("Error", ex);
throw ex;
}
}