Skip to content

jumpjumpbean/go-activiti-rest

Repository files navigation

Go Client For Activiti v6.x Rest API

Go-activiti-rest client offers a library for interacting with Activiti6 server from Go applications. If you write applications in Golang and integrate them with Activiti6 then go-activiti-rest client will be uniquely useful.


Importing

import github.com/jumpjumpbean/go-activiti-rest

Example

package main

import (
	"github.com/jumpjumpbean/go-activiti-rest"
)

func main(){
	// Initialize client
	c, err := activiti.NewClient("kermit", "kermit",  "http://127.0.0.1:8080/activiti-rest/service")
	if err != nil {
		panic(err)
	}
	
	_, err = c.GetUser("fozzie")
	if err != nil {
		panic(err)
	}

	_, err = c.GetUsers()
	if err != nil {
		panic(err)
	}
	
	u := activiti.ActUser{
		ID:"jumpjumpbean",
		FirstName:"jump",
		LastName:"bean",
		Email:"jumpjumpbean@activiti.org",
		Password:"jumpjumpbean",
	}

	_, err = c.CreateUser(u)
	if err != nil {
		panic(err)
	}

	_, err = c.UpdateUser(u)
	if err != nil {
		panic(err)
	}
	
	err = c.DeleteUser("jumpjumpbean")
	if err != nil {
		panic(err)
	}
}

REST API List

序号REST API Item Function
2.1. List of DeploymentsDeployments列表
2.2. Get a deployment获取Deployment
2.3. Create a new deployment创建新的Deployment
2.4. Delete a deployment删除Deployment
2.5. List resources in a deployment列出Deployment中的资源
2.6. Get a deployment resource获取Deployment资源
2.7. Get a deployment resource content获取Deployment资源内容

Process Definitions

序号REST API Item Function
3.1. List of process definitions流程定义列表
3.2. Get a process definition获取流程定义
3.3. Update category for a process definition流程定义的更新类别
3.4. Get a process definition resource content获取进程定义资源内容
3.5. Get a process definition BPMN model获取进程定义 BPMN 模型
3.6. Suspend a process definition暂停进程定义
3.7. Activate a process definition激活流程定义
3.8. Get all candidate starters for a process-definition获得所有候选者的过程
3.9. Add a candidate starter to a process definition在流程定义中添加候选启动器
3.10. Delete a candidate starter from a process definition从进程定义中删除候选启动器
3.11. Get a candidate starter from a process definition从流程定义中获取候选起始项

Models

序号REST API Item Function
4.1. Get a list of models获取模型列表
4.2. Get a model获取模型
4.3. Update a model更新模型
4.4. Create a model创建模型
4.5. Delete a model删除模型
4.6. Get the editor source for a model获取模型的编辑器源
4.7. Set the editor source for a model为模型设置编辑器源
4.8. Get the extra editor source for a model获取模型的额外编辑器源
4.9. Set the extra editor source for a model为模型设置额外的编辑器源

Process Instances

序号REST API Item Function
5.1. Get a process instance获取流程实例
5.2. Delete a process instance删除流程实例
5.3. Activate or suspend a process instance激活或挂起流程实例
5.4. Start a process instance启动流程实例
5.5. List of process instances流程实例列表
5.6. Query process instances查询流程实例
5.7. Get diagram for a process instance获取流程实例的关系图
5.8. Get involved people for process instance参与流程实例的人员
5.9. Add an involved user to a process instance将涉及的用户添加到流程实例
5.10. Remove an involved user to from process instance将涉及的用户从流程实例中删除
5.11. List of variables for a process instance流程实例的变量列表
5.12. Get a variable for a process instance获取流程实例的变量
5.13. Create (or update) variables on a process instance创建
5.14. Update a single variable on a process instance更新流程实例上的单个变量
5.15. Create a new binary variable on a process-instance在进程上创建新的二进制变量
5.16. Update an existing binary variable on a process-instance更新进程中的现有二进制变量

Executions

序号REST API Item Function
6.1. Get an execution获得Execution
6.2. Execute an action on an execution在Execution上执行操作
6.3. Get active activities in an execution在执行过程中获取活动
6.4. List of executionsExecution列表
6.5. Query executions查询执行
6.6. List of variables for an execution执行变量列表
6.7. Get a variable for an execution获取用于执行的变量
6.8. Create (or update) variables on an execution创建
6.9. Update a variable on an execution更新Execution中的变量
6.10. Create a new binary variable on an execution在Execution中创建新的二进制变量
6.11. Update an existing binary variable on a process-instance更新Process-instance中的现有二进制变量

Tasks

序号REST API Item Function
7.1. Get a task获取任务
7.2. List of tasks任务清单
7.3. Query for tasks查询任务
7.4. Update a task更新任务
7.5. Task actions任务行动
7.6. Delete a task删除任务
7.7. Get all variables for a task获取任务的所有变量
7.8. Get a variable from a task从任务中获取变量
7.9. Get the binary data for a variable获取变量的二进制数据
7.10. Create new variables on a task在任务上创建新变量
7.11. Create a new binary variable on a task在任务上创建新的二进制变量
7.12. Update an existing variable on a task更新任务的现有变量
7.13. Updating a binary variable on a task更新任务的二进制变量
7.14. Delete a variable on a task删除任务上的变量
7.15. Delete all local variables on a task删除任务中的所有局部变量
7.16. Get all identity links for a task获取任务的所有标识链接
7.17. Get all identitylinks for a task for either groups or users为组或用户获取任务的所有 identitylinks
7.18. Get a single identity link on a task在任务上获取单个标识链接
7.19. Create an identity link on a task在任务上创建标识链接
7.20. Delete an identity link on a task删除任务上的标识链接
7.21. Create a new comment on a task创建新的任务注释
7.22. Get all comments on a task获取任务的所有注释
7.23. Get a comment on a task获取任务的注释
7.24. Delete a comment on a task删除任务的注释
7.25. Get all events for a task获取任务的所有事件
7.26. Get an event on a task在任务中获取事件
7.27. Create a new attachment on a task, containing a link to an external resource在任务上创建新附件, 包含指向外部资源的链接
7.28. Create a new attachment on a task, with an attached file使用附加文件在任务上创建新附件
7.29. Get all attachments on a task获取任务的所有附件
7.30. Get an attachment on a task获取任务的附件
7.31. Get the content for an attachment获取附件的内容
7.32. Delete an attachment on a task删除任务的附件

History

序号REST API Item Function
8.1. Get a historic process instance获取历史过程实例
8.2. List of historic process instances历史进程实例列表
8.3. Query for historic process instances查询历史进程实例
8.4. Delete a historic process instance删除历史进程实例
8.5. Get the identity links of a historic process instance获取历史进程实例的标识链接
8.6. Get the binary data for a historic process instance variable获取历史进程实例变量的二进制数据
8.7. Create a new comment on a historic process instance创建一个历史进程实例的新注释
8.8. Get all comments on a historic process instance获取历史过程实例的所有注释
8.9. Get a comment on a historic process instance获取一个历史过程实例的注释
8.10. Delete a comment on a historic process instance删除历史进程实例的注释
8.11. Get a single historic task instance获取单个历史任务实例
8.12. Get historic task instances获取历史任务实例
8.13. Query for historic task instances查询历史任务实例
8.14. Delete a historic task instance删除历史任务实例
8.15. Get the identity links of a historic task instance获取历史任务实例的标识链接
8.16. Get the binary data for a historic task instance variable获取历史任务实例变量的二进制数据
8.17. Get historic activity instances获取历史活动实例
8.18. Query for historic activity instances查询历史活动实例
8.19. List of historic variable instances历史变量实例列表
8.20. Query for historic variable instances查询历史变量实例
8.21. Get historic detail获取历史细节
8.22. Query for historic details查询历史细节
8.23. Get the binary data for a historic detail variable获取历史细节变量的二进制数据

Forms

序号REST API Item Function
9.1. Get form data获取表单数据
9.2. Submit task form data提交任务表单数据

Database tables

序号REST API Item Function
10.1. List of tables表格一览表
10.2. Get a single table获取单个表
10.3. Get column info for a single table获取单个表的列信息
10.4. Get row data for a single table获取单个表的行数据

Engine

序号REST API Item Function
11.1. Get engine properties获取引擎属性
11.2. Get engine info获取引擎信息

Runtime

序号REST API Item Function
12.1. Signal event received收到的信号事件

Jobs

序号REST API Item Function
13.1. Get a single job获得一份单独的工作
13.2. Delete a job删除作业
13.3. Execute a single job执行单个作业
13.4. Get the exception stacktrace for a job获取作业的异常堆栈
13.5. Get a list of jobs获取工作列表

Users

序号REST API Item Function
14.1. Get a single user获取单个用户
14.2. Get a list of users获取用户列表
14.3. Update a user更新用户
14.4. Create a user创建用户
14.5. Delete a user删除用户
14.6. Get a user’s picture获取用户的图片
14.7. Updating a user’s picture更新用户图片
14.8. List a user’s info列出用户信息
14.9. Get a user’s info获取用户信息
14.10. Update a user’s info更新用户信息
14.11. Create a new user’s info entry创建新用户的信息条目
14.12. Delete a user’s info删除用户信息

Groups

序号REST API Item Function
15.1. Get a single group获取单个组
15.2. Get a list of groups获取组列表
15.3. Update a group更新组
15.4. Create a group创建组
15.5. Delete a group删除组
15.6. Get members in a group获取组中的成员
15.7. Add a member to a group向组中添加成员
15.8. Delete a member from a group从组中删除成员

About

Go client for Activiti v6.x rest api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages