Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
c755e6e7
Commit
c755e6e7
authored
Sep 28, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show only essential factors for areas of concern - improvements to previous commit
parent
d37664a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+4
-3
AnalysisEngine.java
cmsWebApp/src/performa/utils/AnalysisEngine.java
+1
-6
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
c755e6e7
...
@@ -262,7 +262,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -262,7 +262,7 @@ public class JobApplication extends BaseJobApplication
{
{
try
try
{
{
setCultureFit
(
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()
,
false
));
setCultureFit
(
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()));
}
}
catch
(
FieldException
ex
)
catch
(
FieldException
ex
)
{
{
...
@@ -553,7 +553,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -553,7 +553,7 @@ public class JobApplication extends BaseJobApplication
public
List
<
Tuple
.
T2
>
getCultureAreaOfConcerns
()
public
List
<
Tuple
.
T2
>
getCultureAreaOfConcerns
()
{
{
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
cultureFitData
=
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
(),
true
);
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
cultureFitData
=
(
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>)
getCultureFit
(
);
List
<
Tuple
.
T2
>
result
=
new
ArrayList
();
List
<
Tuple
.
T2
>
result
=
new
ArrayList
();
for
(
CultureClass
cClass
:
cultureFitData
.
keySet
())
for
(
CultureClass
cClass
:
cultureFitData
.
keySet
())
...
@@ -566,8 +566,9 @@ public class JobApplication extends BaseJobApplication
...
@@ -566,8 +566,9 @@ public class JobApplication extends BaseJobApplication
for
(
Tuple
.
T3
tuple
:
cultureFitData
.
get
(
cClass
).
get1
())
for
(
Tuple
.
T3
tuple
:
cultureFitData
.
get
(
cClass
).
get1
())
{
{
CultureNarrative
cultureNarrative
=
(
CultureNarrative
)
tuple
.
get2
();
CultureNarrative
cultureNarrative
=
(
CultureNarrative
)
tuple
.
get2
();
Integer
weightingScore
=
(
Integer
)
tuple
.
get0
();
if
(
cultureNarrative
!=
null
&&
cultureNarrative
.
getColorCode
()
!=
null
&&
cultureNarrative
.
getColorCode
()
!=
ColorCode
.
GREEN
)
if
(
cultureNarrative
!=
null
&&
cultureNarrative
.
getColorCode
()
!=
null
&&
cultureNarrative
.
getColorCode
()
!=
ColorCode
.
GREEN
&&
weightingScore
==
10
)
//i.e. Importance = ESSENTIAL
{
{
result
.
add
(
new
Tuple
.
T2
(
tuple
.
get1
(),
cultureNarrative
.
getColorCode
()));
result
.
add
(
new
Tuple
.
T2
(
tuple
.
get1
(),
cultureNarrative
.
getColorCode
()));
}
}
...
...
cmsWebApp/src/performa/utils/AnalysisEngine.java
View file @
c755e6e7
...
@@ -231,7 +231,7 @@ public class AnalysisEngine
...
@@ -231,7 +231,7 @@ public class AnalysisEngine
}
}
//Tuple.T2<Long, Set<Tuple.T3>> ---> T2<Score, List<T3 <WeightingScore, CultureElement, Narrative>>
//Tuple.T2<Long, Set<Tuple.T3>> ---> T2<Score, List<T3 <WeightingScore, CultureElement, Narrative>>
public
static
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
getCultureFit
(
Set
<
CultureCriteriaAnswer
>
cultureCriteriaAnswers
,
Job
job
,
boolean
areaOfConcern
)
public
static
Map
<
CultureClass
,
Tuple
.
T2
<
Long
,
Set
<
Tuple
.
T3
>>>
getCultureFit
(
Set
<
CultureCriteriaAnswer
>
cultureCriteriaAnswers
,
Job
job
)
{
{
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getCultureFit called"
);
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getCultureFit called"
);
...
@@ -256,11 +256,6 @@ public class AnalysisEngine
...
@@ -256,11 +256,6 @@ public class AnalysisEngine
if
(
criteria
!=
null
&&
criteria
.
getImportance
()
!=
null
&&
criteria
.
getImportance
()
!=
Importance
.
NOT_APPLICABLE
)
if
(
criteria
!=
null
&&
criteria
.
getImportance
()
!=
null
&&
criteria
.
getImportance
()
!=
Importance
.
NOT_APPLICABLE
)
{
{
if
(
areaOfConcern
&&
(
criteria
.
getImportance
()
==
Importance
.
DESIRABLE
||
criteria
.
getImportance
()
==
Importance
.
HIGHLY_DESIRABLE
))
{
continue
;
}
CultureElementRating
rating
=
criteria
.
getCultureElementRating
();
CultureElementRating
rating
=
criteria
.
getCultureElementRating
();
if
(
rating
!=
null
&&
rating
.
getCultureElement
()
!=
null
&&
rating
.
getCultureElement
().
getCultureClass
()
!=
null
)
if
(
rating
!=
null
&&
rating
.
getCultureElement
()
!=
null
&&
rating
.
getCultureElement
().
getCultureClass
()
!=
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment