30
Deployment new style Uniface Software Architect Michel van den Berg

Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Deployment new style

Uniface Software Architect

Michel van den Berg

Page 2: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Agenda

• How to Move to Easy Deployment

• ASN settings

• Development vs Deployment

• Uniface Resource Manager

• Compatibility

• Q & A

Page 3: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource
Page 4: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Classical Style

IDF

Forms

Server Pages

Services

DOL

URR

APS Shells

Page 5: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Standardized Style

IDF

Directory Structure

Forms

APS Shells

Services

Signatures

Messages

Global Proc

Panels

DTD’s

Glyphs

Page 6: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

New Style Deployment

Application.uarMain.uar

Person.uar

Department.uar

Forms

APS Shells

Services

Signatures

Messages

Global Proc

Panels

DTD’s

Glyphs

Directory Structure

Page 7: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Partitioning

MessagesAPS shells

Global Proc

Services

DTDs Signatures

Glyphs FormsFormsServices

Signatures

Glyphs

Main.uar Person.uar

Page 8: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Uniface Runtime Application

Uniface

Runtime UARs can be found in

.../common/usys

Page 9: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Assignment Settings

Which settings are needed:

– ASN Settings for Development

– ASN Settings for Runtime

Page 10: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

IDFForms

APS

Services

DTD’s

Glyphs

DSP’s

Forms

Panels

Settings for Development

idf.asn

[SETTING]

$RESOURCES_OUTPUT = {Path\}Directory

Compile Test mode Deployment

Page 11: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

$RESOURCES_OUTPUT =

(build scripting)

idf.asn

IDF

[SETTING]

{Path\}Appl.uar

Appl.uar

Settings for Development

Compile

Page 12: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Settings for Runtime

Uniface

[SETTING]

$SEARCH_RESOURCES = Resources_Only

Appl.asn

[RESOURCES]

Main.uar

Person.uar

Department.uar

Page 13: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Deploy a Patch

Uniface

Development

Runtime

[RESOURCES]

Main2.uar

;Main.uar

Person.uar

Deparment.uar

Appl.asn

IDFMain2.uar

Page 14: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Only 2 Settings Needed

$RESOURCES_OUTPUT for DEVELOPMENT

- $RSO

$SEARCH_RESOURCES for RUNTIME

- $RES

Page 15: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

$RES / $RSO

[FILES]

contacts.xml $RES:FIL/*.xml

[RESOURCES]

MyApp.uar

c:\ContactInfo\MyData.uar

Page 16: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

IDF.ASN#file D:\build\uniface9\w2k\common\adm\dbms.asn

#file D:\build\uniface9\w2k\common\adm\uniface_flow.asn

#file D:\build\uniface9\w2k\uniface\adm\uqtd.asn

[SETTINGS]

$enhanced_edit all

$putmess_logfile D:\build\uniface9\w2k\log\idf.log

$resources_output Uniface_Resource_Directory

$search_resources Resources_only

[FILES]

usys:*.xml usysuniface:misc\*.xml

usys:idf.aps usysuniface:components\idf.aps

usys:uu*.frm usysuniface:components\uu*.frm

usys:uu*.svc usysuniface:components\uu*.svc

common:uu*.frm usys:..\components\uu*.frm

common:uu*.svc usys:..\components\uu*.svc

common:ur*.svc usys:..\components\ur*.svc

[PATHS]

[ENTITIES]

[USER_3GL]

[RESOURCES]

usys:uidf.uar

usys:usys.uar

usys:usysicon.uar

Page 17: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

--usys.asn:--

[RESOURCES]

usys:usys.uar

usys:usysicon.uar

--myapp.asn—

[SETTING]

$SEARCH_RESOURCES = Resources_Only

[RESOURCES]

Uniface_Resource_Directory

MyApp.uar

Test environment

Page 18: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

--usys.asn:--

[RESOURCES]

usys:usysnl.uar

usys:usys.uar

usys:usysicon.uar

--myapp.asn—

[SETTING]

$SEARCH_RESOURCES = Resources_Only

PATHS]

$MYA = tcp:servermachine+13001|user|password|ust

[RESOURCES]

MyApp_updates_20110502.uar

$MYA:MyApp.uar

Local & Remote UAR’s

Page 19: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Settings for Runtime

[SETTINGS]

$SEARCH_RESOURCES =

– Resources_Only

– Resources_Excluded (default)

– Resources_First

– Resources_Last

Page 20: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

$Search_Resources = …

Uniface

FRM

USP

SVC

DOLURR

APS

Resources_Only

Resources_Excluded

Resources_First |

Resources_Last

Page 21: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Uniface Resource Manager

• URM is a command line deployment utility

• It is to maintain UARs or to get information about their contents

• It runs on all Uniface Client/Server platforms

Page 22: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Uniface Resource Manager

Urm.exe {/GeneralSwitch(es)} Operation Source {Destination} {-Options}– List

– Copy

– Delete

– Merge

– Move

Page 23: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Samples

urm copy

Uniface_Resource_Directory/*/a*

mytest.uar:/*/a*

urm copy

Uniface_Resource_Directory/*/*

mytest.uar:/*/* -after=20110501

Page 24: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

The Benefits

• Easy to deploy: Copy & Paste

• Run Straight from UARs

• Easy to do/undo changes

• UAR Based on Standard Zip technology

• Application Partitioning

Page 25: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Compatibility• Uniface is installed in classical style

• Usys Directory contains both styles

• IDF flags /dis /ins /dol /urr still work

• $search_descriptor & $search_object are obsolete in “resources_only” mode

• 9.3 Urr’s & Dol’s are new format

• 9.3 UARs are new format

• No migration issues: just recompile your complete Application in ≥ 9.3

Page 26: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Questions & Answers

Page 27: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Thank you!

Page 28: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Uniface Directory Structure

Objects Object type Object Name

Forms frm component.frm

Services svc component.svc

Component-

signatures

sig component.sig

Messages msg message@[email protected]

Menus men menu@[email protected]

… … …

Page 29: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource

Resource Locations

3 main locations:

1. Compiler Output

– Defined by $Resources_Output

– $RSO

2. The Resources (UARs)

– Defined by [RESOURCES] section

– $RES

3. The Classic style

– DOL/UOBJ & URR/ULANA

– [FILES]

Appl.uar

Forms

Server Pages

Services

DOLURR

APS Shells

Fixed Directory

Structure

Page 30: Uniface Software Architect Michel van den Berg · Michel van den Berg. Agenda • How to Move to Easy Deployment • ASN settings • Development vs Deployment • Uniface Resource