You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In Map Activities to Forms, there are two ways of mapping an activity. Mapping to External Form is the second way. This feature allows one to map a process's activity to a page hosted externally outside of Joget.

When an assignment is opened by the assignee from the Inbox, instead of viewing the usual Joget form, a iFrame will be shown pointing to the External Form defined in the activity mappings. A number of useful information about the assignment will be passed over as request parameter when the iFrame is loaded.

Parameters that will be passed into external form from Joget:

ในการแม็พกิจกรรมกับฟอร์มมีสองวิธีในการแม็พกิจกรรม การแม็พกับฟอร์มภายนอกเป็นวิธีที่สอง ฟีเจอร์นี้อนุญาตให้ผู้ใช้หนึ่งคนจับคู่กิจกรรมของกระบวนการกับหน้าที่โฮสต์ไว้ภายนอก Joget

เมื่อการมอบหมายถูกเปิดโดยผู้รับมอบหมายจากกล่องขาเข้าแทนที่จะดูฟอร์ม Joget ปกติ iFrame จะปรากฏขึ้นชี้ไปที่แบบฟอร์มภายนอกที่กำหนดในการแมปกิจกรรม จำนวนข้อมูลที่เป็นประโยชน์เกี่ยวกับการกำหนดจะถูกส่งผ่านเป็นพารามิเตอร์คำขอเมื่อโหลด iFrame

พารามิเตอร์ที่จะส่งผ่านไปยังแบบฟอร์มภายนอกจาก Joget:


  • appId
  • appVersion
  • processId
  • processVersion
  • activityId
  • processRequesterId
  • username

Figure 1: Inbox showing assignment that is mapped to External Form

รูปที่ 1: กล่องจดหมายแสดงการกำหนดที่แมปไปยังแบบฟอร์มภายนอก


It is important to note that from this point onward, Joget will no longer has control over the content of the form nor in control of the workflow process anymore. The external page must now handle the form retrieval / validation / saving by itself.

One will then need to invoke the necessary API offered by Joget to complete the assignment in order to move on to the next node in the workflow process. See JSON API Integration | Complete the Assignment with Variables

สิ่งสำคัญคือให้สังเกตว่าจากจุดนี้เป็นต้นไป Joget จะไม่สามารถควบคุมเนื้อหาของแบบฟอร์มหรือในการควบคุมกระบวนการเวิร์กโฟลว์อีกต่อไป ตอนนี้หน้าภายนอกต้องจัดการกับการดึงแบบฟอร์ม / การตรวจสอบ / การบันทึกด้วยตัวเอง

จากนั้นจะต้องเรียกใช้ API ที่จำเป็นที่เสนอโดย Joget เพื่อทำการมอบหมายให้เสร็จสมบูรณ์เพื่อที่จะไปยังโหนดถัดไปในกระบวนการเวิร์กโฟลว์ ดูที่การรวม JSON API Integration | Complete the Assignment with Variables




  • No labels