My Report

Spring Practice Test 10


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Each department may have its own task list to complete in order to achieve the goals of the overarching process.

2. What will be the value of transient field after deserialization:-

3. Once acquired, the Bundle can be interrogated to introspect information about the bundle itself, including any entries, its current state.

4. 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>

5. The ObjectInputStream class contains methods for writing various data types.

6. SpringSource dm Server works with several types of deployment formats:-

7. If the class implements java.io.Serializable, then it is serializable; otherwise, it's not.

8. Inside authorizeCustomer, the service queries the server for the any processes waiting at the:-

9. This provides a set of diagramming notations that describe a business process. This notation is akin to UML activity diagram.

10. The class(CustomerServiceImpl) provides a few salient methods:-

package com.apress.springrecipes.jbpm.jbpm4.customers;
public interface CustomerService {
void sendWelcomeEmail(Long customerId);
void deauthorizeCustomer(Long customerId);
void authorizeCustomer(Long customerId);
Customer getCustomerById(Long customerId);
Customer createCustomer(String email, String password, String firstName, 
String lastName);
void sendCustomerVerificationEmail(Long customerId);
}

 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.