Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboard Salesforce Connector to Axon-ivy market #1

Merged
merged 81 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
1d5d1db
Initial commit
HoDacVu90 Nov 3, 2023
4f61089
Initial project
HoDacVu90 Nov 9, 2023
370f9a8
Implement page list opportunities
HoDacVu90 Nov 10, 2023
eb04fe5
Change process name
HoDacVu90 Nov 10, 2023
0450fbb
Implement Opp details page
HoDacVu90 Nov 14, 2023
6d6bb88
Add bar chart
HoDacVu90 Nov 20, 2023
4c3cdda
Implement add new Opportunity
HoDacVu90 Nov 20, 2023
c21ae14
Create new opportunity
HoDacVu90 Nov 22, 2023
e9b3e64
Implement update opportunity
HoDacVu90 Nov 22, 2023
0647885
Implement delete function
HoDacVu90 Nov 23, 2023
150a507
Refacctor code
HoDacVu90 Nov 24, 2023
31189f9
Update config chart
HoDacVu90 Nov 24, 2023
28e284a
Remove scope attribute
HoDacVu90 Nov 27, 2023
1238616
Update bar chart after crud
HoDacVu90 Nov 27, 2023
36eaaf3
Define api service call for task and event
HoDacVu90 Nov 29, 2023
639038f
Initial Show Activity
HoDacVu90 Nov 29, 2023
d8c2412
show activities details
HoDacVu90 Nov 30, 2023
b74e850
refactor code
HoDacVu90 Dec 1, 2023
4c9d713
Fix update Opp
HoDacVu90 Dec 7, 2023
c19f398
Update README.md
HoDacVu90 Dec 21, 2023
6fb0fec
Update README.md
HoDacVu90 Dec 21, 2023
35e2505
Update README.md
HoDacVu90 Dec 21, 2023
a2fa0dd
Update README.md
HoDacVu90 Dec 21, 2023
8293a52
Update README.md
HoDacVu90 Dec 21, 2023
cb116e2
Update README.md
HoDacVu90 Dec 21, 2023
33cc027
Add images
HoDacVu90 Dec 21, 2023
23dc7de
Update README.md
HoDacVu90 Dec 21, 2023
45bf5dd
Update README.md
HoDacVu90 Dec 21, 2023
99bc9fb
Update README.md
HoDacVu90 Dec 21, 2023
29c4fb2
Update README.md
HoDacVu90 Dec 21, 2023
fd34366
Add salesforce connector product
HoDacVu90 Dec 22, 2023
7ae37fd
add images
HoDacVu90 Dec 22, 2023
430bc43
Update setup.md
HoDacVu90 Dec 22, 2023
17b79de
Update README.md
HoDacVu90 Dec 22, 2023
e147acb
Update README.md
HoDacVu90 Dec 22, 2023
80007bf
up date product project
HoDacVu90 Dec 22, 2023
19bda3e
Create sf connector test project
HoDacVu90 Dec 22, 2023
5b5c8a5
add lobo to rest client
HoDacVu90 Dec 22, 2023
a4803bb
Set up test project
HoDacVu90 Dec 22, 2023
1be70db
Update Rest client
HoDacVu90 Dec 26, 2023
a33157f
Update README.md
HoDacVu90 Dec 26, 2023
a3fea45
Add header requested by
HoDacVu90 Dec 26, 2023
f9d3fbb
Implemnet test for get all and add new
HoDacVu90 Dec 26, 2023
522c24f
Implement test for Opportunity CRUD
HoDacVu90 Dec 26, 2023
c86058e
Update README.md
HoDacVu90 Dec 26, 2023
81fdffc
Update README.md
HoDacVu90 Dec 26, 2023
2ebe178
Refactor codes
HoDacVu90 Dec 26, 2023
9a685a4
Iplement unit test for delete
HoDacVu90 Dec 27, 2023
708dc0a
chore: polish documentation
ptanhaxon Dec 28, 2023
db33f01
Merge pull request #1 from axonivy-professional-services/doc/polish-d…
ptanhaxon Dec 28, 2023
01f111a
Merge branch 'master' of https://github.com/nqhoan-axonivy/salesforce…
Jan 3, 2024
60e996e
doc: Add product.json & revise documentation
ptanhaxon Jan 4, 2024
a94ad3b
Merge pull request #1 from nqhoan-axonivy/doc/update-product-document
nqhoan-axonivy Jan 4, 2024
cfa0c01
Update .gitignore
HoDacVu90 Jan 4, 2024
0a480b5
doc: Add CI badges
ptanhaxon Jan 4, 2024
b00e1aa
Refactor source code
HoDacVu90 Jan 5, 2024
0b8c3e2
clear configuration
HoDacVu90 Jan 5, 2024
a9ef3f5
Merge pull request #2 from nqhoan-axonivy/dev
nqhoan-axonivy Jan 5, 2024
7567997
Update Data class
HoDacVu90 Jan 5, 2024
aff3471
remove unused data class
HoDacVu90 Jan 5, 2024
27fd6ed
Merge pull request #3 from nqhoan-axonivy/dev
HoDacVu90 Jan 5, 2024
a37fa90
Refactor Unit test
HoDacVu90 Jan 8, 2024
71357ab
Remove unused import
HoDacVu90 Jan 8, 2024
866d67d
Add return directly
HoDacVu90 Jan 8, 2024
2b21373
Remove comment out
HoDacVu90 Jan 8, 2024
95d5464
remove configuration
HoDacVu90 Jan 8, 2024
eec132d
Unify setting files
Jan 8, 2024
ed44d6a
Refactor package
HoDacVu90 Jan 9, 2024
7484226
Update layout
HoDacVu90 Jan 9, 2024
bd614f1
Format code
HoDacVu90 Jan 9, 2024
f6eb286
Update format codes
HoDacVu90 Jan 9, 2024
85c7656
Minor refactore
HoDacVu90 Jan 9, 2024
9dcf4d2
Update packages
HoDacVu90 Jan 9, 2024
9403c7d
fix unit test
HoDacVu90 Jan 9, 2024
4c41cb9
set empty to vars
HoDacVu90 Jan 9, 2024
fdf91e7
update pom test file
HoDacVu90 Jan 11, 2024
7659a18
Update readme file
HoDacVu90 Jan 15, 2024
dd71fbd
Update README.md
HoDacVu90 Jan 15, 2024
4eacc5a
fix readme syntax
Jan 18, 2024
4027dc7
Fix pom and readme typo
Jan 18, 2024
4cc665f
set resource as H3
Jan 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ hs_err_pid*

# maven
target/
lib/mvn-deps/

# ivy
lib/mvn-deps/
logs/
classes/
src_dataClasses/
src_wsproc/
logs/
15 changes: 0 additions & 15 deletions MY-PRODUCT-NAME-product/README.md

This file was deleted.

67 changes: 0 additions & 67 deletions MY-PRODUCT-NAME-product/pom.xml

This file was deleted.

26 changes: 0 additions & 26 deletions MY-PRODUCT-NAME-product/zip.xml

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# MY-PRODUCT-NAME
# Salesforce Connector
[![CI Build](https://github.com/axonivy-market/salesforce-connector/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/salesforce-connector/actions/workflows/ci.yml)

[![CI Build](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml)
nqhoan-axonivy marked this conversation as resolved.
Show resolved Hide resolved
This connector builds the REST API and provides a means to access Salesforce's resources. A client can utilize the REST API to manipulate Salesforce (SF) objects.

"YOUR SHORT DESCRIPTION GOES HERE"

Read our [documentation](MY-PRODUCT-NAME-product/README.md).
Read our [documentation](salesforce-connector-product/README.md).
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.market</groupId><!-- your group id: e.g. com.axonivy.connector.<myconnector> or com.axonivy.utils.<myutil> -->
<name>my-product</name><!-- fill your product name -->
<artifactId>my-product-modules</artifactId><!-- fill your product name + a "-modules" postfix -->
<version>10.0.0-SNAPSHOT</version><!-- identicate your minimal compliant ivy version with the first 2 digits -->
<groupId>com.axonivy.connector.salesforce</groupId>
<name>salesforce-connector</name>
<artifactId>salesforce-connector-modules</artifactId>
<version>10.0.12-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
Expand Down
33 changes: 33 additions & 0 deletions salesforce-connector-demo/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**/*.ivyClass|**/*.p.json|**/*.rddescriptor|**/*.xhtml" kind="src" path="src_hd">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src_wsproc">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src_dataClasses">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="IVY_CONTAINER"/>
<classpathentry kind="con" path="WEBAPP_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
19 changes: 19 additions & 0 deletions salesforce-connector-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general
Thumbs.db
.DS_Store
*~
*.log

# java
*.class
hs_err_pid*

# maven
target/
lib/mvn-deps/

# ivy
classes/
src_dataClasses/
src_wsproc/
logs/
49 changes: 49 additions & 0 deletions salesforce-connector-demo/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>salesforce-connector-demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>ch.ivyteam.ivy.designer.dataClasses.ui.ivyDataClassBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>ch.ivyteam.ivy.designer.process.ui.ivyWebServiceProcessClassBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>ch.ivyteam.ivy.designer.ide.ivyModelValidationBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>ch.ivyteam.ivy.project.IvyProjectNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions salesforce-connector-demo/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="webContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=salesforce.connector.demo.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=salesforce.connector.demo
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=11
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000
eclipse.preferences.version=1
10 changes: 10 additions & 0 deletions salesforce-connector-demo/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="salesforce-connector-demo">
<wb-resource deploy-path="/" source-path="/webContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_hd"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_wsproc"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_dataClasses"/>
<property name="context-root" value="salesforce-connector-demo"/>
<property name="java-output-path" value="/salesforce-connector-demo/target/classes"/>
</wb-module>
</project-modules>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<root>
<facet id="jst.jsf">
<node name="libprov">
<attribute name="provider-id" value="jsf-user-library-provider"/>
</node>
</facet>
</root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
css-profile/<project>=org.eclipse.wst.css.core.cssprofile.css3
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
10 changes: 10 additions & 0 deletions salesforce-connector-demo/cms/cms_en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Dialogs:
listOpps:
accName: Account Name
action: Action
amount: Amount
chart: Chart
closeDate: Close Date
listOpps: List Opportunities
oppName: Opportunity Name
stage: Stage
20 changes: 20 additions & 0 deletions salesforce-connector-demo/config/custom-fields.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# == Custom Fields Information ==
#
# You can define here your project custom fields.
# Have a look at our documentation for more information.
#
CustomFields:
# Tasks:
# MyTaskCustomField:
# Label: My task custom field
# Description: This new task custom field can be used to ...
# Type: STRING
# Cases:
# MyCaseCustomField:
# Label: My case custom field
# Description: This new case custom field can be used to ...
# Type: STRING
# Starts:
# MyStartCustomField:
# Label: My start custom field
# Description: This new start custom field can be used to ...
1 change: 1 addition & 0 deletions salesforce-connector-demo/config/databases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Databases:
1 change: 1 addition & 0 deletions salesforce-connector-demo/config/overrides.any
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
2 changes: 2 additions & 0 deletions salesforce-connector-demo/config/persistence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.2" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"/>
1 change: 1 addition & 0 deletions salesforce-connector-demo/config/rest-clients.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RestClients:
4 changes: 4 additions & 0 deletions salesforce-connector-demo/config/roles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<role>
<identifier>Everybody</identifier>
</role>
2 changes: 2 additions & 0 deletions salesforce-connector-demo/config/users.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userConfig/>
9 changes: 9 additions & 0 deletions salesforce-connector-demo/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# == Variables ==
#
# You can define here your project Variables.
# If you want to define/override a Variable for a specific Environment,
# add an additional ‘variables.yaml’ file in a subdirectory in the ‘Config’ folder:
# '<project>/Config/_<environment>/variables.yaml
#
Variables:
# myVariable: value
1 change: 1 addition & 0 deletions salesforce-connector-demo/config/webservice-clients.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WebServiceClients:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Data #class
com.axonivy.connector.salesforce #namespace
opps java.util.List<com.axonivy.connector.salesforce.model.Opportunity> #field
id String #field
id PERSISTENT #fieldModifier
acc com.axonivy.connector.salesforce.model.Account #field
accs java.util.List<com.axonivy.connector.salesforce.model.Account> #field
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FindAllEventByOpportunityIdData #class
com.axonivy.connector.salesforce #namespace
events java.util.List<com.axonivy.connector.salesforce.model.Event> #field
oppId String #field
Loading