Create OSGi service | AEM Community Discussion

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

31-03-2021

BlogImage.jpg

Create OSGi service by Adobe Docs

Abstract

The following code was written to store the forms that need to be signed. Each form to sign is associated with a unique guid and a customer id. So one or more forms can be associated with the same customer ID, but will have a unique GUID assigned to the form.

Interface
The following is the interface declaration that was used

package com.aem.forms.signmultipleforms;
import com.adobe.granite.workflow.WorkflowSession;
import com.adobe.granite.workflow.exec.WorkItem;
public interface SignMultipleForms
{
public void insertData(String []formNames,String formData,String serverURL,WorkItem workItem, WorkflowSession workflowSession);
public String getNextFormToSign(int customerID);
public void updateSignatureStatus(String formData,String guid);
public String getFormData(String guid);
}

Insert Data
The insert data method inserts a row in the database identified by the datasource. Each row in the database corresponds to a form and is uniquely identified by a GUID and customer id. The form data and the form URL are also stored in this row. The status column is to indicate if the form has been filled and signed. Value of 0 indicates the form is yet to be signed.

Read Full Blog

Create OSGi service

Q&A

Please use this thread to ask the related questions.

AEM AEMIBlogSeeding Experience Manager