Inside the createCustomer method, we use jBPM to start the business process to track the Customer. This is done with the :- <?xml version="1.0" encoding="UTF-8"?> <process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl"> <start> <transition to="send-verification-email" /> </start> <java name="send-verification-email" expr="#{customerService}" method="sendCustomerVerificationEmail"> <arg> <object expr="#{customerId}" /> </arg> <transition to="confirm-receipt-of-verification-email" /> </java> <state name="confirm-receipt-of-verification-email"> <transition to="send-welcome-email" /> </state> <java name="send-welcome-email" expr="#{customerService}" method="sendWelcomeEmail"> <arg> <object expr="#{customerId}" /> </arg> </java> </process>

Question:
Inside the createCustomer method, we use jBPM to start the business process to track the Customer. This is done with the :-

<?xml version="1.0" encoding="UTF-8"?>
<process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl">
          <start>
          <transition to="send-verification-email" />
          </start>
          <java name="send-verification-email" expr="#{customerService}"
          method="sendCustomerVerificationEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          <transition to="confirm-receipt-of-verification-email" />
          </java>
          <state name="confirm-receipt-of-verification-email">
          <transition to="send-welcome-email" />
          </state>
          <java name="send-welcome-email"
          expr="#{customerService}" method="sendWelcomeEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          </java>
</process>

1.startProcessInstanceByKey

2. startProcessInstance

3.all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 14:46:31


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!