Skip to content

Instantly share code, notes, and snippets.

@kailashbadu
Created July 28, 2015 05:55
Show Gist options
  • Save kailashbadu/74350aacc4d93eaf346a to your computer and use it in GitHub Desktop.
Save kailashbadu/74350aacc4d93eaf346a to your computer and use it in GitHub Desktop.
#Workflow:: CompStak
credentials:
username:
password:
account:
line:
title: CompStack V1.0
template_id: DaAvql4Ayi
stations:
- type: content
content_settings:
title: LeaseMarking
description: LeaseMarking
reward: 0.0139
assignment_duration: 420
- type: content
content_settings:
title: DetailMarking
description: DetailMarking
reward: 0.0089
assignment_duration: 400
- type: content
content_settings:
title: Address Station
description: Address Station
reward: 0.0089
assignment_duration: 400
- type: content
content_settings:
title: Comments Station
description: Comments Station
reward: 0.0089
assignment_duration: 400
- type: content
content_settings:
title: Others Station
description: Others Station
reward: 0.0089
assignment_duration: 400
- type: content
content_settings:
title: Last Station
description: Last Station
reward: 0.0089
assignment_duration: 400
workflow: >
Proc.new do |tx|
NoOpV1(tx)
branch(tx.aggregates) do |agg|
label(:InputFormatCheckerAndConverter)
InputFormatCheckerAndConverter(agg)
label(:ConvertToImageAndCreateChild)
ImageConverterAndChildCreator(agg)
branch(agg.active_children) do |child|
label(:MarkerStation)
APIContentV1(child, station_index: 0)
label(:Highlighter)
HighlighterAndChildCreator(child)
branch(child.active_children) do |grand_child|
label(:APIContentV1)
APIContentV1(grand_child, station_index: 1)
label(:LeaseDetailAnalyzer)
LeaseDetailAnalyzer(grand_child)
branch(grand_child.active_children) do |last_child|
label(:APIContentV1)
APIContentV1(last_child, station_index: last_child.data['station_index'])
label(:complete)
UnitAnalytic(last_child)
end
label(:LabelChecker)
LabelChecker(grand_child)
branch(grand_child.active_children) do |final_station_child|
label(:FinalStation)
APIContentV1(final_station_child, station_index: 5)
label(:complete)
UnitAnalytic(final_station_child)
end
label(:complete)
UnitAnalytic(grand_child)
end
label(:complete)
UnitAnalytic(child)
end
label(:complete)
UnitAnalytic(agg, [2,3,4])
end
AutoCompleteV1(tx)
CallbackV3(tx)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment