工作流审批退回,撤销API

审批退回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低代码应用平台体验

(0)
yexiu的头像yexiu数式员工
上一篇 2025年1月16日 下午10:38
下一篇 3天前

相关推荐

  • 自定义字段样式

    在日常开发中,我们经常会遇到需要根据业务规则动态展示字段样式的场景,比如表格、表单或详情中的某些字段需要改变文字颜色。本文将通过一个具体的案例,带大家实现这一功能。 以下以 自定义表格字段文字颜色 为例。 实现步骤 1. 在界面设计器中添加组件 通过界面设计器,添加一个组件 2. 创建元件 以表格的「金额字段」为例,创建对应的元件(可根据自己的业务场景调整)…

    2025年1月9日
    24600
  • 新人引导文档

    类型 文档链接 入门参考必看 7天入门到精通 Oinone 初级学习路径 Oinone 初级学习路径 平台部署启动 无代码docker启动说明 低代码启动说明 前端环境和启动前端工程 无代码设计器启动方式 后端无代码设计器Jar包启动方法 平台部署及依赖说明 Oinone平台部署及依赖说明(v5.0) 问题排查方法 问题排查工具使用手册 前后端研发帮助文档 …

    2024年7月15日
    74700
  • Oinone 初级学习路径

    文档说明 文档链接 介绍Oinone前端相关知识点 前端基础学习路径 介绍Oinone后端相关知识点 后端基础学习路径 介绍平台基础组件 平台基础组件 介绍平台设计器常用场景实操 设计器基础学习路径 设计器实操案例示例 7.2 实战训练(积分发放)

    2024年6月15日
    45500
  • 如何通过业务数据拿到工作流用户任务待办

    在模型里面建一个非存储字段,用来传输工作流用户任务待办ID。。 界面设计器把这个字段拖到列表页里,并在跳转动作上配置上下文参数,把任务待办id传到表单页里。 重写教师模型的queryPage,通过业务数据id查询出每条业务数据的工作流用户任务待办id返回给前端。 @Function.Advanced(displayName = "查询教师列表&qu…

    2025年1月10日
    25200
  • 设计器基础学习路径

    模块 内容 目标 doc 链接 模型设计器 模型 1.熟悉模型管理和字段管理 模型 数据字典 熟悉数据字典的创建 数据字典 数据编码 了解数据编码的操作创建 数据编码 界面设计器 了解页面 了解界面设计器中的页面 页面 页面设计 增删改查 【界面设计器】模型增删改查基础 页面设计 左树右表 【界面设计器】左树右表 页面设计 树形表格 【界面设计器】树形表格 …

    2024年6月15日
    42800

发表回复

登录后才能评论