요약
호스트 통합 서버 백 엔드 시스템과 통신을 HIS 런타임 다양 한 구성 요소에서 사용 되는.hidx 파일을 만들 수 있도록 Visual Studio 디자이너에 포함 되어 있습니다. Studio 디자이너를 통해.hidx 파일의 생성은 엄격 하 게 수동 작업. 그러나 자동화 된 세대의 PowerShell.hidx 파일의 프로젝트 기간 동안 시간을 절약할 수 있습니다. 누적 업데이트 2 만들고 PowerShell 통해.hidx 파일을 수정할 수 있습니다.
Note 32 비트 Visual Studio 디자이너의 구성 요소를 호출 하기 때문에 PowerShell의 32 비트 버전을 사용 해야 합니다. PowerShell의 64 비트 버전을 사용 하는 경우 다음과 유사한 오류 메시지가 기록 됩니다.
'Microsoft.HostIntegration.Importer.PowerShell.NewHisWipHidxFile'의 형식 이니셜라이저에서 예외를 발생 했습니다.
추가 정보
이 업데이트는 호스트 통합 서버 2016에 대 한 누적 업데이트 2 에 포함 됩니다.
Visual Studio 만들 수 있는 호스트 통합 프로젝트의 종류는 다음과 같습니다.
-
BizTalk 파이프라인 변환
-
호스트 응용 프로그램
-
호스트 파일
-
메시지 큐
이 업데이트 롤업을 설치 되 면 PowerShell 통해 프로젝트 형식 각각에 대 한.hidx 파일을 만들 수 있습니다. 경험을 PowerShell를 사용 하 여 파일을 작성 하기 전에 Visual Studio 디자이너를 통해.hidx 파일을 작성 해야 하는 것이 좋습니다.
PowerShell을 사용 하 여 32 비트 Windows PowerShell ISE (x86)를 연 다음 보기 메뉴에서 표시 명령 추가 기능 을 선택 합니다. 명령 탭에서 PowerShell에서 사용할 수 있는 명령의 목록을 표시 하려면 Microsoft.HostIntegration.Importer.PowerShell 모듈을 선택 합니다.
예제
다음 작업을 수동으로 수행 하려면 다음과이 같이 하십시오.
-
WIP hidx 개체를 만듭니다.
-
GetAccounts라는 메서드를 추가 합니다.
-
CustomerName라는 입력된 30-문자열 매개 변수를 추가 합니다.
-
AccountNum라는 6 자 문자열 입력된 매개 변수를 추가 합니다.
-
균형 있는 PIC S9 라는 출력 10 진수 매개 변수 추가 (7) V99.
-
WIP hidx 개체를 파일로 저장 합니다. Hidx 파일을 저장할 때 C:\Lab. 폴더가 있어야 합니다 $WIPhidx 개체를 만들 수 있음을 염두에 두어야 합니다.
이러한 작업을 자동화 하려면 PowerShell에서 다음 스크립트를 실행:
$WIPhidx = New-HisWipHidxFile -ElmUserData -Name MyNamespace -Interface IMyInterface -
Description "My Description" -File C:\Lab\WIPSample.hidx
$WIPMethod = Add-HisHidxElement -InputObject $WIPhidx -Method -Name GetAccounts
$NameParameter = $WIPMethod | Add-HisHidxParameter -Name CustomerName -Atomic
$NameParameter.Direction = "In"
$NameParameter.DataType = "String"
$NameParameter.ConversionInformation.Size = 30
$AccountParameter = $WIPMethod | Add-HisHidxParameter -Name AccountNum -Atomic
$AccountParameter.Direction = "In"
$AccountParameter.DataType = "String"
$AccountParameter.ConversionInformation.Size = 6
$BalanceParameter = $WIPMethod | Add-HisHidxParameter -Name Balance -Atomic
$BalanceParameter.Direction = "Out"
$BalanceParameter.DataType = "Decimal"
$BalanceParameter.ConversionInformation.HostDataType = "PIC S9(n)V9(n) COMP-3"
$BalanceParameter.ConversionInformation.Precision = 7
$BalanceParameter.ConversionInformation.Scale = 2
$WIPhidx.Save()
참고: 다른 예제 PowerShell 스크립트는 GitHub에서 사용할 수 있습니다.
참조
Microsoft에서 소프트웨어 업데이트를 설명 하기 위해 사용 하는 용어 에 대해 알아봅니다.