RabbitMQ 权限

AMQP 操作到RabbitMQ权限的映射关系
AMQP命令 配置
exchange.declare exchange
exchange.delete exchange
queue.declare queue
queue.delete queue
queue.bind queue exchange
queue.publish exchange
basic.publish exchange
basic.get queue
basic.consume queue
basic.purge queue

普元BPS 修改流程实例名称

1
2
3
4
//批量修改流程实例的基本属性.
//processInstID 流程实例ID
//attrubuteMap 基本属性
setProcessInstAttributeBatch(long processInstID, java.util.Map<java.lang.String,java.lang.Object> attrubuteMap)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//实际只能修改(name、description、priority)这几个属性
//参考源代码WFProcessInstOperateImpl
private void setProcInstAttribute(WFProcessInstInternal procInst, String field, String value)
throws WFServiceException
{
if (field.equals("name"))
procInst.setProcessInstName(value);
else if (field.equals("description"))
procInst.setProcessInstDesc(value);
else if (field.equals("priority"))
if (StringUtil.isNullOrBlank(value))
procInst.setPriority(60);
else
procInst.setPriority(Integer.parseInt(value));
else
throw new WFEngineException("Can not modify specified attributes of the process instance. procInstID=" + procInst.getProcessInstID() + ",field=" + field + ",value=" + value);
}
1
2
3
4
5
6
//修改某流程的名称
long processInstID = 576l;
Map<String, Object> attr = new HashMap<String, Object>();
attr.put("name", "流程实例名称");
attr.put("description", "流程实例描述");
Instance.getProcessInstManager().setProcessInstAttributeBatch(processInstID, attr);