审批退回API
mutation {
workflowUserTaskMutation {
approveRejust(
workflowUserTask: {id: 701530152718787758, userTaskViewName: "工作流任务待办xml_workflow", userTaskReadonlyViewName: "工作流任务待办detail_workflow", source: "超级管理员", statusDisplayName: "待处理", avatarUrl: "https://pamirs.oss-cn-hangzhou.aliyuncs.com/oinone/img/workflow/default.png", name: "测试流程", instanceId: 701530152718787737, taskId: 701530152718787756, definitionId: 701530152718787698, definitionVersion: 34, canAddSignApproval: false, content: null, nodeId: "APPROVAL0000000000014502", userType: USER_TYPE_USER, userId: 10001, model: "top.Teacher", nodeContext: "{\"id\":\"700755598316612629\",\"teacherName\":\"1234312\",\"readStatus\":\"NO_READ\",\"pamirsUser\":[]}", taskType: APPROVE, viewId: 701530152718787696, viewReadonlyId: 701530152718787697, taskCreateDate: "2025-01-22 14:31:12", flowCreateDate: "2025-01-22 14:30:50", allowTransfer: false, allowAddSign: false, allowFallback: true, allowStaging: true, allowAgree: true, allowReject: true, readConfirm: false, mustReason: false, isUrge: false, status: ACTIVE, filterAddSign: "id>=0 ", filterTransfer: "id>=0 ", hasFallback: true, workflowBackNode: {id: 701530152718787702, fallBackNodeName: "填写"}, filterFallBackNodeIds: "'WRITE0000000000014501'"}
) {
id
addSignUserId
transferUserId
workflowBackNodeId
enableCustomView
isCopy
isRecall
isClose
isFallBack
operateType
workflowModule {
id
logo
bitOptions
attributes
displayName
sys
name
systemSource
module
sign
abbr
hash
dsKey
summary
description
state
boot
application
latestVersion
platformVersion
publishedVersion
publishCount
defaultCategory
category
moduleDependencies
moduleExclusions
moduleUpstreams
excludeHooks
priority
website
author
demo
web
license
toBuy
maintainer
contributors
url
selfBuilt
metaSource
clientTypes
show
defaultHomePageModel
homePageModel
defaultHomePageName
homePageName
defaultLogo
createDate
writeDate
createUid
writeUid
}
module
userTaskViewName
userTaskReadonlyViewName
source
fromDepartment
fromCorpName
fromCorpLogo
fromCorpId
workflowVersion
statusDisplayName
helpDisplayName
avatarUrl
name
title
workflowUserInstanceId
instanceId
instance {
id
name
title
bizType
source
fromDepartment
fromCorpName
fromCorpLogo
fromCorpId
workflowVersion
module
version
definitionCode
workflowDCode
currentNodeName
triggerType
status
startDate
endDate
instanceCostTime
context
originNodeContext
runtimeDefinition
model
errorMessage
notifyErrorMessage
parentTaskInstanceId
masterInstanceId
parentInstanceId
isAsync
initiatorUid
currentNodeTag
currentNodeId
isUrge
canUrge
lastUrgeTime
taskType
hasApproval
hasWrite
taskPassedStatus
tmpTaskType
tmpTaskPassedStatus
canRecall
nodeContextSummary
instanceStatusDisplayName
dataBizId
hasSaved
createDate
writeDate
createUid
writeUid
}
taskId
taskInstance {
id
endFunId
workflowName
module
workflowInstanceId
nodeId
nodeTag
nodeName
nodeDisplayName
nodeDataId
nodeDataIsCreateData
nodeDesc
autoPass
isCurrent
isHistory
version
orderNumber
startDate
finishDate
taskCostTime
status
lastTaskInstanceId
lastNodeId
lastStatus
hasFallback
fallBackNodeId
fallBackTaskInstanceId
belongBranchIndex
belongBranchNodeId
deph
errorMessage
nodeContext
model
nodeDataBizId
nodeDataBizIds
originNodeContext
dataSaveType
hasSaved
result
missData
locked
branchCount
passedBranchs
postTime
isDeadlineOperate
lastUrgeTime
canUrge
isUrge
isRecall
belongLoopNodeId
loopCurrent
loopEnd
isLoop
enableEndFun
isClose
createDate
writeDate
createUid
writeUid
}
definitionId
definitionVersion
canAddSignApproval
flowDesc
content
nodeId
nodeName
nodeDesc
userType
userId
employeeId
roleId
deptId
nodePersonUser {
userId
userName
avatarUrl
status
result
remark
pics
addSignRemark
addSignPics
}
model
modelName
nodeDataBizId
nodeDataBizIds
originNodeContext
nodeContext
nodeContextSummary
taskType
taskPassedStatus
viewId
viewReadonlyId
taskCreateDate
taskFinishDate
flowCreateDate
allowTransfer
allowAddSign
allowModify
allowFallback
allowStaging
allowAgree
allowReject
allowPost
deadlineType
allowAutoTransfer
allowAutoAgree
deadline
remindMinuteEnable
remindMinute
remindMinuteUnit
deadlineStatus
readDone
readConfirm
remindContent
remindNum
isDeadlineOperate
mustReason
isUrge
logDetails {
id
workflowUserTaskLogId
taskId
orderNumber
nodeName
instanceId
startDate
finishDate
operator
operation
operationName
nodeType
remark
createDate
writeDate
createUid
writeUid
}
historyTasks {
id
workflowUserTaskId
nodeId
nodeTag
status
createDate
writeDate
createUid
writeUid
}
status
result
remark
opRemark
addSignUser {
id
code
teacherId
employeeType
name
jobNum
dataStatus
companyCode
departmentCode
departmentTreeCode
bindingUserId
isMaster
userEmail
login
phone
initialPassword
bindingMode
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
transferUser {
id
code
teacherId
employeeType
name
jobNum
dataStatus
companyCode
departmentCode
departmentTreeCode
bindingUserId
isMaster
userEmail
login
phone
initialPassword
bindingMode
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
autoTransferUsers {
id
code
teacherId
employeeType
name
jobNum
dataStatus
companyCode
departmentCode
departmentTreeCode
bindingUserId
isMaster
userEmail
login
phone
initialPassword
bindingMode
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
selectType
transferInfo {
id
nodeId
name
exp
type
count
model
filed
isMulti
}
addSignInfo {
id
nodeId
name
exp
type
count
model
filed
isMulti
}
transferPerson {
id
nodeId
name
exp
type
count
model
filed
isMulti
}
addSignPerson {
id
nodeId
name
exp
type
count
model
filed
isMulti
}
isAutoTransfer
filterAddSign
filterTransfer
filterAutoTransfer
canOperate
hasAddSign
operation
initiator {
id
code
countryId
avatarMediumId
currencyId
avatarBigId
themeId
signUpType
userType
login
phoneCode
phone
email
initialPassword
isInitialPassword
password
source
active
name
nickname
realname
avatarUrl
langId
timeZoneType
contactPhone
contactEmail
birthday
gender
idCard
regDate
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
createDate
initiatorUid
hasFallback
workflowBackNode {
id
nodeId
fallBackNodeId
fallBackNodeName
fallBackNodeLabel
definitionId
workflowCode
nodeModel
nodeModelId
createDate
writeDate
createUid
writeUid
}
emptyWorkflowBackNode
filterFallBackNodeIds
flowTreeJson
taskTime
isMobile
nodeInfos {
orderNum
taskInstanceId
branchOrderNum
branchUniqueCode
branchName
isSelected
isPassed
isHistory
hasStart
fallbackTaskInstanceId
taskFinishedDate
nodeId
nodeName
nodeTag
remark
userId
isDottedLine
userName
avatarUrl
taskInstanceStatus
statusDisplayName
pics
addSignRemark
addSignPics
canUrge
}
writeDate
instanceStatusDisplayName
fallBackNodeId
needSendMessage
pics
attachments {
id
code
name
url
type
size
mime
isPublic
resId
resType
createDate
writeDate
createUid
writeUid
}
addSignRemark
addSignPics
addSignAttachments {
id
code
name
url
type
size
mime
isPublic
resId
resType
createDate
writeDate
createUid
writeUid
}
mainModel
dataBizId
createUid
sharingUser {
id
code
teacherId
employeeType
name
jobNum
dataStatus
companyCode
departmentCode
departmentTreeCode
bindingUserId
isMaster
userEmail
login
phone
initialPassword
bindingMode
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
writeUid
}
}
}
撤销API
mutation {
workBenchWorkflowUserTaskInitiateMutation {
recall(
workflowUserTaskInitiate: {id: 701530152718787737, tag: TAG_PASS, initiateSelect: TOTAL, taskTypeSelect: TOTAL, name: "测试流程", workflowModule: {id: 644013028727063175, displayName: "oinone功能展示", module: "top_demo"}, source: "超级管理员", module: "top_demo", status: PROCESSING, canUrge: true, canRecall: true, createDate: "2025-01-22 14:30:50"}
) {
id
tag
initiateSelect
taskTypeSelect
name
title
bizType
workflowModule {
id
logo
bitOptions
attributes
displayName
sys
name
systemSource
module
sign
abbr
hash
dsKey
summary
description
state
boot
application
latestVersion
platformVersion
publishedVersion
publishCount
defaultCategory
category
moduleDependencies
moduleExclusions
moduleUpstreams
excludeHooks
priority
website
author
demo
web
license
toBuy
maintainer
contributors
url
selfBuilt
metaSource
clientTypes
show
defaultHomePageModel
homePageModel
defaultHomePageName
homePageName
defaultLogo
createDate
writeDate
createUid
writeUid
}
source
fromDepartment
fromCorpName
fromCorpLogo
fromCorpId
workflowVersion
module
version
definition {
id
code
initiatorId
bizType
triggerType
module
content
version
active
workflowCode
workflowName
designerContent
createDate
writeDate
createUid
writeUid
}
definitionCode
workflowDCode
currentNodeName
triggerType
status
startDate
endDate
instanceCostTime
context
originNodeContext
runtimeDefinition
workflowTaskInstances {
id
endFunId
workflowName
module
workflowInstanceId
nodeId
nodeTag
nodeName
nodeDisplayName
nodeDataId
nodeDataIsCreateData
nodeDesc
autoPass
isCurrent
isHistory
version
orderNumber
startDate
finishDate
taskCostTime
status
lastTaskInstanceId
lastNodeId
lastStatus
hasFallback
fallBackNodeId
fallBackTaskInstanceId
belongBranchIndex
belongBranchNodeId
deph
errorMessage
nodeContext
model
nodeDataBizId
nodeDataBizIds
originNodeContext
dataSaveType
hasSaved
result
missData
locked
branchCount
passedBranchs
postTime
isDeadlineOperate
lastUrgeTime
canUrge
isUrge
isRecall
belongLoopNodeId
loopCurrent
loopEnd
isLoop
enableEndFun
isClose
createDate
writeDate
createUid
writeUid
}
modelDefinition {
id
labelFields
attributes
label
bitOptions
sys
sign
systemSource
hash
pk
module
dsModule
moduleName
moduleAbbr
model
displayName
name
lname
table
dsKey
remark
type
multiTable
multiTableTypeField
multiTableType
redundancy
proxy
isRelationship
summary
description
priority
dataManager
ordering
sequenceCode
superModels
unInheritedFields
unInheritedFunctions
uniques
indexes
logicDelete
logicDeleteColumn
logicDeleteValue
logicNotDeleteValue
optimisticLockerField
underCamel
capitalMode
charset
collate
categoryId
show
createDate
writeDate
createUid
writeUid
}
model
aliveUserTask {
id
addSignUserId
transferUserId
workflowBackNodeId
enableCustomView
isCopy
isRecall
isClose
isFallBack
operateType
module
userTaskViewName
userTaskReadonlyViewName
source
fromDepartment
fromCorpName
fromCorpLogo
fromCorpId
workflowVersion
statusDisplayName
helpDisplayName
avatarUrl
name
title
workflowUserInstanceId
instanceId
taskId
definitionId
definitionVersion
canAddSignApproval
flowDesc
content
nodeId
nodeName
nodeDesc
userType
userId
employeeId
roleId
deptId
model
modelName
nodeDataBizId
nodeDataBizIds
originNodeContext
nodeContext
nodeContextSummary
taskType
taskPassedStatus
viewId
viewReadonlyId
taskCreateDate
taskFinishDate
flowCreateDate
allowTransfer
allowAddSign
allowModify
allowFallback
allowStaging
allowAgree
allowReject
allowPost
deadlineType
allowAutoTransfer
allowAutoAgree
deadline
remindMinuteEnable
remindMinute
remindMinuteUnit
deadlineStatus
readDone
readConfirm
remindContent
remindNum
isDeadlineOperate
mustReason
isUrge
status
result
remark
opRemark
selectType
isAutoTransfer
filterAddSign
filterTransfer
filterAutoTransfer
canOperate
hasAddSign
operation
createDate
initiatorUid
hasFallback
emptyWorkflowBackNode
filterFallBackNodeIds
flowTreeJson
taskTime
isMobile
writeDate
instanceStatusDisplayName
fallBackNodeId
needSendMessage
pics
addSignRemark
addSignPics
mainModel
dataBizId
createUid
writeUid
}
errorMessage
notifyErrorMessage
parentTaskInstanceId
masterInstanceId
parentInstanceId
isAsync
initiator {
id
code
countryId
avatarMediumId
currencyId
avatarBigId
themeId
signUpType
userType
login
phoneCode
phone
email
initialPassword
isInitialPassword
password
source
active
name
nickname
realname
avatarUrl
langId
timeZoneType
contactPhone
contactEmail
birthday
gender
idCard
regDate
createDate
createUserName
writeDate
writeUserName
createUid
writeUid
}
initiatorUid
currentNodeTag
currentNodeId
isUrge
canUrge
lastUrgeTime
taskType
hasApproval
hasWrite
taskPassedStatus
tmpTaskType
tmpTaskPassedStatus
canRecall
nodeContextSummary
instanceStatusDisplayName
dataBizId
hasSaved
createDate
writeDate
createUid
writeUid
}
}
}
Oinone社区 作者:yexiu原创文章,如若转载,请注明出处:https://doc.oinone.top/other/20354.html
访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验