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
b1453e0a
Commit
b1453e0a
authored
Oct 11, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Percentage for Role Fit: percentage should be relative to maximum possible value
parent
ecca434f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+16
-4
AnalysisEngine.java
cmsWebApp/src/performa/utils/AnalysisEngine.java
+3
-3
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
b1453e0a
...
...
@@ -351,11 +351,23 @@ public class JobApplication extends BaseJobApplication
//This will return relative percentage considering topper as 100%
public
Double
getRoleFitPercentage
()
{
JobApplication
jobTopper
=
getJob
()
!=
null
?
getJob
().
getTopper
()
:
null
;
Double
myScore
=
getRoleFitScore
();
Double
topScore
=
jobTopper
!=
null
?
jobTopper
.
getRoleFitScore
()
:
null
;
Double
myScore
=
getRoleFitScore
();
return
NullArith
.
round
(
NullArith
.
divide
(
NullArith
.
multiply
(
myScore
,
100
),
topScore
),
2
);
if
(
myScore
>
0
&&
getCandidate
()
!=
null
&&
getJob
()
!=
null
&&
getJob
().
getLevel
()
!=
null
)
{
TestAnalysis
testAnalysis
=
getCandidate
().
getTestAnalysisFor
(
getJob
().
getLevel
());
if
(
testAnalysis
!=
null
)
{
Double
topScore
=
AnalysisEngine
.
getSuitabilityScore
(
testAnalysis
,
true
).
get0
();
if
(
topScore
>
0
)
{
return
NullArith
.
round
(
NullArith
.
divide
(
NullArith
.
multiply
(
myScore
,
100
),
topScore
),
2
);
}
}
}
return
0
d
;
}
public
List
<
AppProcessOption
>
getValidProcessOptions
()
...
...
cmsWebApp/src/performa/utils/AnalysisEngine.java
View file @
b1453e0a
...
...
@@ -438,18 +438,18 @@ public class AnalysisEngine
}
scoreMap
.
put
(
factorClass
,
new
Tuple
.
T2
(
score
,
colorCode
));
}
scoreMap
.
put
(
null
,
getSuitabilityScore
(
testAnalysis
));
scoreMap
.
put
(
null
,
getSuitabilityScore
(
testAnalysis
,
false
));
}
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getRoleFitSuitability completed for candidate "
,
candidate
,
" Level "
,
level
);
return
scoreMap
;
}
public
static
Tuple
.
T2
<
Double
,
ColorCode
>
getSuitabilityScore
(
TestAnalysis
testAnalysis
)
public
static
Tuple
.
T2
<
Double
,
ColorCode
>
getSuitabilityScore
(
TestAnalysis
testAnalysis
,
boolean
maxScore
)
{
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"AnalysisEngine --> getSuitabilityScore called for testAnalysis "
,
testAnalysis
);
Double
totalScore
=
testAnalysis
.
getWghtdLevelScore
();
Double
totalScore
=
maxScore
?
testAnalysis
.
getMaxWghtdLevelScore
()
:
testAnalysis
.
getWghtdLevelScore
();
Double
wghtdMeanScore
=
0
d
;
Double
wghtdStdDevScore
=
0
d
;
Double
suitabilityScore
=
0
d
;
...
...
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