GithubHelp home page GithubHelp logo

Comments (3)

EliJDonahue avatar EliJDonahue commented on August 29, 2024

Hi Angela,

This project provides an example for a scenario when you want an end user to choose one or more identities for a task. This becomes a little more clear if you imagine that the "Workflow Assignment Example" item is a business object, like a Document.

A user can create the business object and then set 1-3 "reviewers" in the reviewer properties. When the user saves the business object, the workflow is initialized and triggers the labs_WorkflowAssignmentExampleCS method.

The labs_WorkflowAssignmentExampleCS method then:

  • gets the business object using the labs_GetControlledItemCSharp method
  • builds an array of reviewers from the business object's properties
  • creates an Activity Assignment for each reviewer in the array
  • sets the voting weight of each assignment based on the total number of reviewers
  • updates the current activity

You could easily use the sample code to allow end users to select assignees for a Part, Document, ECN, etc. You just need to add the method to an OnActivate server event on the workflow activity of your choice and update the code to get the correct properties from the business object/controlled item.

Does that make more sense?

Eli

from auto-workflow-assignment.

AngelaIp avatar AngelaIp commented on August 29, 2024

Thanks for the explanation!
But in the end I finally figured it out myself two weeks ago. We already use the function in one of our processes. In my variant, the respective assignments are set automatically based on the team roles and some additional properties. Much more powerful than your version :-).

from auto-workflow-assignment.

EliJDonahue avatar EliJDonahue commented on August 29, 2024

Great idea for a project! Thanks for the follow up, Angela.

from auto-workflow-assignment.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.