Skip to content

Instantly share code, notes, and snippets.

View jeqo's full-sized avatar
🚶
vamos caminando

Jorge Esteban Quilcate Otoya jeqo

🚶
vamos caminando
View GitHub Profile
@jeqo
jeqo / TaskDetailsAccessTest.java
Created June 5, 2014 16:20
Test case to access Human Task details
package com.jeqo.htcore;
import com.oracle.xmlns.bpel.workflow.task.Humantask1PayloadType;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryService;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryService_Service;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.WorkflowErrorMessage;
import java.math.BigInteger;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.bind.JAXBContext;
@jeqo
jeqo / ServiceAccessTest.java
Created June 5, 2014 15:57
Test case to access SOA Suite SOAP web service
package com.jeqo.htcore;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryService;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryService_Service;
import com.oracle.xmlns.bpel.workflow.taskqueryservice.WorkflowErrorMessage;
import java.util.logging.Level;
import java.util.logging.Logger;
import oracle.bpel.services.workflow.common.model.CredentialType;
import oracle.bpel.services.workflow.common.model.WorkflowContextType;
import org.junit.Test;
@jeqo
jeqo / index.html
Created June 5, 2014 14:51
JS code to print the request parameters.
<!DOCTYPE html>
<html>
<head>
<title>Start Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>Hello World!</h1>
<script>
// get the current URL
@jeqo
jeqo / OrganizationHelper.java
Created May 19, 2014 07:57
Class to access, create and get user extended properties from Oracle BPM Workspace using BPM API.
package com.acme.bpm.client.boundary;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oracle.bpel.services.bpm.common.IBPMContext;
import oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
@jeqo
jeqo / GetUserExtendedProperties
Created May 18, 2014 21:45
Method to get participants properties from Oracle BPM Workspace
public List<ParticipantProperties> getParticipantsProperties(List<String> participantsNames) {
List<ParticipantProperties> participantsProperties =
new ArrayList<ParticipantProperties>();
try {
beginConnection();
IBPMServiceClient bpmServiceClient =
clientFactory.getBPMServiceClient();
@jeqo
jeqo / CreateUserExtendedProperty
Created May 18, 2014 21:10
Method to Create an User Extended Property on Oracle BPM 11g
public void createUserExtendedProperty(String propertyName,
PropertyType propertyType) {
try {
beginConnection();
IBPMServiceClient bpmServiceClient =
clientFactory.getBPMServiceClient();
IBPMOrganizationService bpmOrganizationService =
bpmServiceClient.getBPMOrganizationService();