This is probably the most commonly asked question of all time. It only takes a couple of lines of code to set the value into a workflow variable: |
นี่อาจเป็นคำถามที่พบบ่อยที่สุดตลอดกาล ใช้เวลาเพียงไม่กี่บรรทัดของรหัสในการตั้งค่าเป็นตัวแปรเวิร์กโฟลว์: |
import org.joget.workflow.model.service.*; WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager"); wm.activityVariable(workflowAssignment.getActivityId(),"status", "Approved"); |
The Joget Marketplace has a free plugin called the Workflow Variable Update Process Tool . This is a process tool to easily update any number of workflow variables in your process. With this tool, you now do not need to use a BeanShell script.
Joget Marketplace มีปลั๊กอินฟรีที่เรียกว่า Workflow Variable Update Process Tool นี่เป็นเครื่องมือที่ใช้ในกระบวนการเพื่ออัปเดตตัวแปรเวิร์กโฟลว์จำนวนเท่าใดก็ได้ในกระบวนการของคุณ ด้วยเครื่องมือนี้ตอนนี้คุณไม่จำเป็นต้องใช้สคริปต์ BeanShell |
องค์ประกอบที่เกี่ยวข้อง |