📄 test.java
字号:
/*
* Created on 2004-10-17
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.hongsoft.agile.test;
import com.hongsoft.agile.*;
import java.util.*;
/**
* @author hongsoft.com
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Test {
public static void main(String[] args)
{
try
{
AgileConnection ac=Agile.connectToServer();
//AgileFlow.startProcess(ac,"test");
List workList=AgileFlow.getAllAssignments(ac);
for(int i=0;i<workList.size();i++)
{
AgileActivity agileActivity=((AgileActivity)workList.get(i));
if(agileActivity.getActivityInsId().equals("c_2"))
{
AgileFlow.acceptAssignment(ac,"myUserId",agileActivity.getActivityInsId());
AgileFlow.completeActivity(ac,agileActivity.getProcessInsId(),agileActivity.getActivityInsId());
}
}
Agile.disConnectServer(ac,true);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -